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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
catmint
Frequent Visitor

Dynamic period in Timeline slicer

Hi community!

 

How can I dynamically limit the range on the date slider using the conditions like: SELECTEDVALUE

 

In my case, I want to set the condition when selecting a certain version of the budget (actuals) in another slicer, the date range on the date selection slider was limited to the maximum available date, in other cases - the entire period.

 

I have a measure of the maximum available date, but I can't figure out if it's even possible to dynamically limit this range. In the particular case model is simple:

1. Fact table 
2. Calendar
3. Some additional tables for SELECTEDVALUE filters

 

This is what the slider looks like all the time: 

catmint_0-1683716542703.png

Desired result when selecting the AC version:

catmint_1-1683716595423.png

 

As a date I'm using date from Calendar table. 
Max date calculation:
CALCULATE(MAX(Fact Table[Date]), FILTER(Fact Table, Fact Table[Value] <> 0), Fact Table[Version] = "AC") -- the fact table has zero-values for future periods, if that matters.

2 REPLIES 2
Anonymous
Not applicable

Hi @catmint ,

Please create relationship between the 2 tables.

vrongtiepmsft_0-1683859568463.pngvrongtiepmsft_1-1683859591156.pngvrongtiepmsft_2-1683859602131.png

How to Get Your Question Answered Quickly 

 

If it does not help, please provide more details with your desired output and pbix file without privacy information (or some sample data) .

 

Best Regards
Community Support Team _ Rongtie

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Hi @Anonymous ! 

Thank you for your quick response and trying to help. 

I made an example .pbix and attach it.

In my example, table1 contains only three columns.

Budget version - contains several versions of the budget, but actuals are not complete. That's why I want to limit the date selection range when selecting this version. So that when comparing one version to another, the capture will be by the last available actuals date.

I tried to make an additional table to filter with a limited date range, but it does not allow me to compare 2 versions because it limits the context (VersionsDates)

As an example I made 2 sheets in the report, on the first "Works" dynamic version selection works, but without dynamic range selection. On the second sheet "Not Works" the range selection works when selecting Actuals, but no ability to select a version to compare.


Link: https://1drv.ms/u/s!ApO9IZha2FT_gSq7ToCXXVX7GuWo?e=9y9SC6

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.