Quantcast
Channel: SQLServerCentral » SQL Server 2014 » Development - SQL Server 2014 » Latest topics
Viewing all articles
Browse latest Browse all 3145

bizarre behaviour SSRS

$
0
0
Hi,I have a really strange situation in SSRS 2014 whereby a single column group is repeating across multiple columns.So, instead of having a single column in the matrix to show each distinct value, I can the same values repeated across multiple columns.The SQL query and matrix themselves are extremely simple.SQL----select Continent ,ShipType ,CalendarYear ,sum(Value) [Spend]from tablegroup by Continent ,ShipType ,CalendarYearExample output------------------Asia Chemical Tankers 2015 24536789Asia Container Vessels 2015 3465789Asia Dry Cargo Vessels 2015 13897625Asia Gas Carrier 2015 5893760Now, in SSRS, I have a very simple matrix which uses:Detail Rows = SpendRow Group = ShipTypeColumn Group = RegionThe parameter specifies @Year and so I get just 2015 resultsHowever, when it runs it shows this inside matrix:Region Asia Asia---------------------------------------------------------Chemical Tankers 24536789Container Vessels 3465789Dry Cargo Vessels 13897625Gas Carrier 5893760So you see SSRS displays 2 separate columns for same group, strangely.It does this for SOME of the Continent groups but NOT ALL.Western Europe, for example, displays correctly in one column.This is utterly bizarre.I have checked everything - the stored procedure, the dataset, the shared datasourceIt should display this:Region Asia-------------------------------------Chemical Tankers 24536789Container Vessels 3465789Dry Cargo Vessels 13897625Gas Carrier 5893760I even completely simplified the originating SQL, as above, to pre-aggregate into a separate table, and even this doesn't work.SSRS just decides to split out the column group into separate columns.Can someone please help with this conundrum?Thanks.

Viewing all articles
Browse latest Browse all 3145

Trending Articles