Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
kennyyip
Helper I
Helper I

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
1 ACCEPTED SOLUTION
5 REPLIES 5
Ashish_Mathur
Super User
Super User

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.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

To conclude, my current problems when using respective columns in the x axis of column charts:

1. Revenue[date]: no date hierachy in the chart (i.e top left drill down button in chart widget)

2. Calendar[date]: ytd prior year measures show blank value

3. Year-month-day hierachy from calendar[date]: ytd prior year measures show blank value, and column in x axis arranged as 2018 1, 2018 2, 2018 3, 2017 1, 2017 2....2017 12

Any advice? Thanks a lot

Kenny

Sorry, my bad to describe not accurately. You are right it's one to many from Calendar to Revenue. But I still couldn't get the date hierachy after relating both

Hi,

 

I always follow the best practise of creating Year and Month columns in the Calendar table and then dragging those to the visuals.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors