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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.