Quantcast
Channel: Pentaho Community Forums
Viewing all articles
Browse latest Browse all 16689

Date/month not working for Saiku analysis when filtered by year

$
0
0
I have a date dimension with level year, quarter, month. For both quarter and month, I use quarter_number and month_number as ordinalColumn. This schema works well in Saiku analysis with correct order for both quarter and month without filtering. But when I filter year to only 2013 then Saiku analysis result looks wield as below: first the Q1 breaks to two places. Second the month is not ordered.

Anyone has same problem? How to fix it?

Thanks a lot.

2013
Q1 Q4 Q1 Q2 Q3
MeasuresLevel January October November February March April May June July August September
CNT 1,602 5,582 6,403 1,794 4,605 5,232 3,996 4,560 4,231 4,156 5,378


Schema for the date dimension:

<Hierarchy name="Months" visible="true" hasAll="true" primaryKey="date_key">
<Table name="dim_date_en_us">
</Table>
<Level name="Year" visible="true" column="year4" type="Numeric" uniqueMembers="true" levelType="TimeYears" hideMemberIf="Never">
</Level>
<Level name="Quarter" visible="true" column="quarter_number" ordinalColumn="quarter_number" type="Numeric" uniqueMembers="false" levelType="TimeQuarters" hideMemberIf="Never" captionColumn="quarter_name">
</Level>
<Level name="Month" visible="true" column="month_number" ordinalColumn="month_number" type="Numeric" uniqueMembers="false" levelType="TimeMonths" hideMemberIf="Never" captionColumn="month_name">
</Level>
</Hierarchy>

Viewing all articles
Browse latest Browse all 16689

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>