My time table is sorted through a time_id field and I have the year, the quarter, the month and the day. OLAP sorts this dimension Alphabetically and I cannot do anything about it. Any ideas?
Hi All, I figured it all myself If the base column in the time table is of type DATE and then OLAP builds the year, the quarter, the month and the day from that base column, the sorting will work fine.
The order is different of the hierarchize.
Define the hirarchize for instance Year-Quarter-Month-Week-Day, and forget the number id of your primary key
I think that I know what is your problem:
in every level of your time dimension
the key data type property must be numeric, e.g. integer, so your data will be sorted by numeric order.
I guess that currently your key data type is char or varchar.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.