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
alecsonline
Helper I
Helper I

Slinding calendars: show two calendars where the second one is the first plus/minus x days

Hi all, I am not succeeding in obtain this:

in a table showing a calendar on the first column, I should be able to show a second column that is still a calendar but reporting the dates "transposed" of 1 , 2, 3 etc (or -1,-2 etc. ) depending on a value flagged in a slicer.

 

In the image below is an example of the desired result (in this case flagging "-4" in the slicer)

 

If you like you can find here a .pbix file with calendar and slicer already on:

 

https://www.dropbox.com/s/bwms01x6r9xurwk/Sliding%20calendars.pbix?dl=0

 

Thank you all for any help!!!

 

Slicing calendars.JPG

1 ACCEPTED SOLUTION
v-danhe-msft
Employee
Employee

Hi @alecsonline ,

Based on my test, you could refer to below measure:

Measure = CALCULATE(MAX([Date]))+SELECTEDVALUE(datechanging[dayschanging])

Result:

1.PNG

You could also download the pbix file to have a view.

 

Regards,

Daniel He

Community Support Team _ Daniel He
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
v-danhe-msft
Employee
Employee

Hi @alecsonline ,

Based on my test, you could refer to below measure:

Measure = CALCULATE(MAX([Date]))+SELECTEDVALUE(datechanging[dayschanging])

Result:

1.PNG

You could also download the pbix file to have a view.

 

Regards,

Daniel He

Community Support Team _ Daniel He
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Great thank you very much!!!! So simple! Tried many wrong ways.....

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.