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
Anonymous
Not applicable

How to use 2 different dates with 1 calendar table

Hi, 

 

So for example, I have 
2 types of dates

Forecasted DateActual DateValue
1/2/201/2/201
3/2/202/2/202
3/2/204/2/203

 

I am creating a matrix table that shows the values according to the forecasted dates and the values shown are controlled by a toggle.

Toggle > 1. Forecasted date 
2. Actual Date

 

Because all this data is in a single query, I am unable to create 2 relationships of dates to a single calendar table and the way I have done is thus far is to split the 2 dates into 2 different queries and linking them seperately to 1 calendar table. 

 

However by doing so, I have to regroup filters which make it a hassle to do it twice, is there a more elegant way to do this based off 1 query?

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@Anonymous , you can join them to the same date table and use userelation.

Refer my blog for example:  https://community.powerbi.com/t5/Community-Blog/HR-Analytics-Active-Employee-Hire-and-Termination-trend/ba-p/882970

Or this : https://radacad.com/userelationship-or-role-playing-dimension-dealing-with-inactive-relationships-in-power-bi

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

View solution in original post

3 REPLIES 3
Nathalie_ITK_78
Regular Visitor

Hi, 

I found a video to solve the problem. by using DAX. It is well functionning for my reports. 

https://www.youtube.com/watch?v=u8_aeLmXbVk

 

Hope it will be helpfull.  

KR, Nathalie

v-juanli-msft
Community Support
Community Support

Hi @Anonymous 

You could unpivot the "Forecasted date" and "actual date" columns in Transform data,  then you would get a column with "forecast date","actual date", then a column with dates.

Next, create a relationship between the dates above and your calendar table.

 

Best Regards

Maggie

amitchandak
Super User
Super User

@Anonymous , you can join them to the same date table and use userelation.

Refer my blog for example:  https://community.powerbi.com/t5/Community-Blog/HR-Analytics-Active-Employee-Hire-and-Termination-trend/ba-p/882970

Or this : https://radacad.com/userelationship-or-role-playing-dimension-dealing-with-inactive-relationships-in-power-bi

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
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!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

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