crystal reports - Show data from quarterly records in a single row -


each quarter's sales data contained in row in data source.

account 1's 4 quarters of sales data in 4 separate records, each containing account name, quarter number, , count of items purchased.

the report should show, in each detail row: account name, q1 count, q2 count, q3 count, q4 count, total year count.

i'm new crystal, seems should easy; how this?

i'd create result list using complex sql , display on crystal report...but if you're wanting accomplish entirely inside crystal, take @ http://aspalliance.com/1041_creating_a_crosstab_report_in_visual_studio_2005_using_crystal_reports.all.

here's stab @ sql required...

select accountname,  (select sum(itemcount) mytable quartername = 'q1') q1count,  (select sum(itemcount) mytable quartername = 'q2') q2count,  (select sum(itemcount) mytable quartername = 'q3') q3count,  (select sum(itemcount) mytable quartername = 'q4') q4count,  (select sum(itemcount) mytable) yearcount mytable   group accountname ; 

Comments

Popular posts from this blog

java - SNMP4J General Variable Binding Error -

windows - Python Service Installation - "Could not find PythonClass entry" -

Determine if a XmlNode is empty or null in C#? -