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

Get certified in Microsoft Fabric—for free! For a limited time, the Microsoft Fabric Community team will be offering free DP-600 exam vouchers. Prepare now

Reply
DavidSasse
Frequent Visitor

Time Travel via a Slicer

Hi,

I've been trying to work out a simple way to add a number of days to Today() via a slicer to effectively travel forward in time.

I have a bunch of calculations comparing dates based on a calculated column containing Today() and want to be able to move forward in time to show the impact if nothing else changes.  In my simple head it would be Today()+[DaysToAdd} ; where [DaysToAdd] is an unrelated table/column ranging from 1-1825 for example, but I cannot find a way to add the two column together as they are unrelated.

 

Any ideas would be a great help.

 

Thanks

1 ACCEPTED SOLUTION

Hi @DavidSasse 

If you are using slicer ( set as between ) to adjust it then you can adjust it from the right, or you can use a ( list ) settings for your slicer to select individual nuber.

 

 

Best Regards,
Mariusz

If this post helps, then please consider Accepting it as the solution.

Please feel free to connect with me.
Mariusz Repczynski

 

View solution in original post

3 REPLIES 3
Mariusz
Community Champion
Community Champion

Hi @DavidSasse 

The simple way would be.

Measure 2 = TODAY() + MAX( YourTable[DaysToAdd] )
Best Regards,
Mariusz

If this post helps, then please consider Accepting it as the solution.

Please feel free to connect with me.
Mariusz Repczynski



Thanks for the quick reply Mariusz, but althought it enables the calculation to work the answer seems to be always the same regardsless of the slicer entry.  I guess this is because of using the MAX function.

 

Any other ideas?

Hi @DavidSasse 

If you are using slicer ( set as between ) to adjust it then you can adjust it from the right, or you can use a ( list ) settings for your slicer to select individual nuber.

 

 

Best Regards,
Mariusz

If this post helps, then please consider Accepting it as the solution.

Please feel free to connect with me.
Mariusz Repczynski

 

Helpful resources

Announcements
OCT PBI Update Carousel

Power BI Monthly Update - October 2024

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

September Hackathon Carousel

Microsoft Fabric & AI Learning Hackathon

Learn from experts, get hands-on experience, and win awesome prizes.

October NL Carousel

Fabric Community Update - October 2024

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