Hi, I'm trying to build a report excluding all empty value lines. When I run the next query in Saiku, i get the attached result, despite "Non-empty" is selected.
If I remove the year level, products with no sales in January and February are not shown. But if year is added, those products are shown with null values. I guess It is so because there are sales in 2003 year. Question is... Is this the right behavior or should these empty lines be excluded? I've tried using Saiku 2.6 and 3.09, over Pentaho BI Server 4.8 and Pentaho BA Server 5.3 respectively. Mondrian 3.
Query:
WITH SET [~Time_Years] AS Exists({[Time].[Years].Members}, [~Time_Months]) SET [~Time_Months] AS {[Time].[2003].[QTR1].[Jan], [Time].[2003].[QTR1].[Feb]} SET [~COLUMNS] AS Hierarchize({[~Time_Years], [~Time_Months]}) SET [~ROWS] AS {[Product].[Product].Members} SELECT NON EMPTY CrossJoin([~COLUMNS], {[Measures].[Quantity]}) ON COLUMNS, NON EMPTY [~ROWS] ON ROWS FROM [SteelWheelsSales]
Thanks in advance.
If I remove the year level, products with no sales in January and February are not shown. But if year is added, those products are shown with null values. I guess It is so because there are sales in 2003 year. Question is... Is this the right behavior or should these empty lines be excluded? I've tried using Saiku 2.6 and 3.09, over Pentaho BI Server 4.8 and Pentaho BA Server 5.3 respectively. Mondrian 3.
Query:
WITH SET [~Time_Years] AS Exists({[Time].[Years].Members}, [~Time_Months]) SET [~Time_Months] AS {[Time].[2003].[QTR1].[Jan], [Time].[2003].[QTR1].[Feb]} SET [~COLUMNS] AS Hierarchize({[~Time_Years], [~Time_Months]}) SET [~ROWS] AS {[Product].[Product].Members} SELECT NON EMPTY CrossJoin([~COLUMNS], {[Measures].[Quantity]}) ON COLUMNS, NON EMPTY [~ROWS] ON ROWS FROM [SteelWheelsSales]
Thanks in advance.