Forum Discussion

kennyyip's avatar
kennyyip
Helper I
8 years ago
Solved

Maintain date hierachy with date table

Hi,

I have a data set "revenue" with revenue and date (only month end date involved but it's still down to day level). To use datesadd and tablesytd function I created a date table "Calendar" with one column using calendarauto. Then I relate the revenue[date] to calendar[date], one to many and two way cross filter relationship. However, when I use revenue[date] in x axis of column chart, it lost the default hierachy that revenue[date] (e.g. Year, quarter, month, date] had before linking to calendar table. Any method I could have that when I relate revenue[date] to calendar[date]? Thanks.

Kenny

5 Replies

  • Hi,

     

    The relatioship from revenue[date] to calendar[date] should be a many to one relationship.  In the visual, drag Date from the Calendar Table.