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

How To Get Data Slicer to Automatically Update when Refreshing Data

Im working on a dashboard with multiple tabs and various data sources.

 

I don't know how I did it, but in one of the tabs, when you refresh the data, the date slicer automatically updates the second date (date slicer is set to "Between" setting) to be the most recent date that ther is data for.

 

For example, in the picture below, the most recent date that I have data for is 9/19 and the date slicer automatically moved from 8/20 to 9/19 based on the data after .

 

Good Slicer.PNG

Now I want the slicers in my other tabs to do the same thing, but I have no idea how (the data in the other tabs come from different data sources). I tried copy/pasting the date slicer from one tab to the other tab and that didn't work. I tried replicating so that the date fields were in the same format, but that didn't work.

 

I really have no clue why it's doing this for one of the date slicers, but not the others.

 

Please let me know if you've encountered this.

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

Hi @JRP515 

If the date table is dynamic, the "between" date slicer can be dynamically updated to most recent date.

Here is a example, if i create a date table as below,

Next day, the slicer would move to 2019/9/25

Capture11.JPGCapture12.JPG

 

In you date table, are there dates until most recent date or until the current year end?

Please show more detials so that i can help you better.

 

Best Regards
Maggie
Community Support Team _ Maggie Li
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

3 REPLIES 3
v-juanli-msft
Community Support
Community Support

Hi @JRP515 

If the date table is dynamic, the "between" date slicer can be dynamically updated to most recent date.

Here is a example, if i create a date table as below,

Next day, the slicer would move to 2019/9/25

Capture11.JPGCapture12.JPG

 

In you date table, are there dates until most recent date or until the current year end?

Please show more detials so that i can help you better.

 

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

Thinking about it further - this is the best way to go about it. We have date tables for most of our dashboards, and setting the second date TODAY() is what we need! It will take a few additional steps and workarounds, but definitely the best option.

 

Thanks!

Thanks for the response Maggie! That essentially accomplishes what I want to accomplish.

 

For this specific dashboard, we aren't using a date reference table, because we want to show to different dates in our dashboard - one for when ticket is submitted , and one for when it is closed, which come from the same data query.

 

The only problem with your solution is it is going to affect a lot of other dashboards that we have built for a client. We have been using a different date reference table to create time series graphs, cycle times,etc.

 

In this particular example that I showed, there was one date slicer that automatically updated to the most recent date that has refreshed data (no date table, just a simple date. But I can't figure out why that one updates automatically and none of the other slicers do. Could be a bug?

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.