Quantcast
Channel: SQLServerCentral » Reporting Services » Reporting Services » Latest topics
Viewing all articles
Browse latest Browse all 2791

How to Add Multiple Column Groups?

$
0
0
Hi everyone,I need to create a report showing the number of Failed/Passed tasks for a year. The report should have:- a column for quarters- a column showing total of passed tasks for each quarter, - a column showing total of failed tasks for each quarter- a column for months- a column showing total of passed tasks for each month- a column showing total of failed tasks for each monthThe data set is below:[code="plain"]Quarter Month TaskName TaskStatus 1 1 H Passed 1 1 A Failed 1 2 G Passed 1 3 G Failed 1 3 F Passed 1 3 y Passed 2 4 d Failed 2 4 F Passed 2 4 R Failed 2 5 Q Failed 2 5 K Passed 2 5 Y Failed 2 6 F Passed 2 6 D Passed[/code]The expected report is like this:[code="plain"]Quarter Passed Failed Month Passed Failed------- ------ ------ ----- ------ ------ 1 4 2 1 1 1 2 1 0 3 2 1 2 3 5 4 1 2 5 1 2 6 1 1[/code]I am able to use column group to create a report with 3 columns for months as below. However I am stuck at adding column for quarters and column group that column similar to what I did for months.[code="plain"]Month Passed Failed----- ------ ------ 1 1 1 2 1 0 3 2 1 4 1 2 5 1 2 6 1 1[/code]After I added another group by Quarter I can not see how to add new column group for Quarter to count Failed/Passed per quarter to meet the expected report. Is is possible to produce the report I want? Many thanks![code="plain"]Quarter Month Passed Failed------- ----- ------ ------ 1 1 1 1 2 1 0 3 2 1 2 4 1 2 5 1 2 6 1 1[/code]

Viewing all articles
Browse latest Browse all 2791

Trending Articles