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
JRP515
Frequent Visitor

Question About Date Slicers RE: Refreshed data

Is there a way to have date slicers on the "Between" setting (rather than "Relative") where the second date updates automatically after refreshing with new data?

 

In other words, can the date slicer automatically change/update based on the date range of the new data?

1 ACCEPTED SOLUTION
v-lili6-msft
Community Support
Community Support

hi, @JRP515 

Now when you log out of Power BI and come back to a report, the same items will be selected as when you left.

So for your requirement, it couldn't achieve in power bi for now.

https://ideas.powerbi.com/forums/265200-power-bi-ideas/suggestions/7162004-default-selected-slicer-o...

and as a workaround, you add a column to judge if the date is max date then set it in visual/page/report level filter or create a measure do the same work as vaibhavdesai provided.

 

Best Regards,

Lin

Community Support Team _ Lin
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-lili6-msft
Community Support
Community Support

hi, @JRP515 

Now when you log out of Power BI and come back to a report, the same items will be selected as when you left.

So for your requirement, it couldn't achieve in power bi for now.

https://ideas.powerbi.com/forums/265200-power-bi-ideas/suggestions/7162004-default-selected-slicer-o...

and as a workaround, you add a column to judge if the date is max date then set it in visual/page/report level filter or create a measure do the same work as vaibhavdesai provided.

 

Best Regards,

Lin

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

Hi,

For this you will need to add a calculated column in your Date table as below:

DateToShow = IF( Dates[Date] <= MAX( TransactionTable[Date] ), TRUE(), FALSE() )

Once this is done, you can add a page level filter on 'DateToShow' field and set it to True.

So every time you refresh the data, it will fetch the MAX avaialable date and only show slicer till that date.

 

Thanks.

Please accept this as a solution if it satisfies the requirement. Appreciate your Kudos. 🙂

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.