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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Anonymous
Not applicable

Automatic Update of Date Filter

Hi,

 

I was wondering if there was any way to automatically update date filters when refreshing your data source.

 

As of right now, I have a filter for year, month, and day, but when refreshing my data source, the filters are stuck on the date that I had saved the dashboard. 

I created a column for "max" date, but my boss wants to have it so that it automatically shows the max date, but also you can drop down to pick certain dates as well, so my max date columns did not work out... 

 

Capture.PNG

Please let me know if my question is confusing

 

Thank you!
Sarah 

2 ACCEPTED SOLUTIONS
VasTg
Memorable Member
Memorable Member

@Anonymous 

 

I had a similar situation to show the latest month in the month slicer.

 

I ended up creating a new column as  if last business day =1, then "current" else month_name. Then i used the new column in the slicer and selected "current " as default value. Based on the last business day, the current month is dynamically populated. 

 

You could follow the same approach for all the slicers.

 

Cap11.PNG

If this helps, mark it as a solution.

Kudos are nice too.

 

 

Connect on LinkedIn

View solution in original post

@Anonymous 

Sarah,

 

Create a custom or conditional sort order column where values for  jan is 1, feb is 2 etc.

Then select the column you want to sort in Data view, then choose "sort by column" drop down to select the column you created in previous step.

 

If it helps, mark it as a solution.

Kudos are nice too.

Connect on LinkedIn

View solution in original post

7 REPLIES 7
mpgoggin
Advocate II
Advocate II

Hello Power Gurus,

I have a follow up question:

Is there a solution for a date slicer with a from date and to date, as opposed to a drop down. I would love to have to To Date that is automically updated to show today, as opposed to the last time the file was saved.

Thanks and Regards,

Mike G

VasTg
Memorable Member
Memorable Member

@Anonymous 

 

I had a similar situation to show the latest month in the month slicer.

 

I ended up creating a new column as  if last business day =1, then "current" else month_name. Then i used the new column in the slicer and selected "current " as default value. Based on the last business day, the current month is dynamically populated. 

 

You could follow the same approach for all the slicers.

 

Cap11.PNG

If this helps, mark it as a solution.

Kudos are nice too.

 

 

Connect on LinkedIn
Anonymous
Not applicable

Hi, @VasTg Do you know how to sort the months in order so that it is in order like Jan , Feb , Mar , instead of by alphabetical?

 

Thank you!
Sarah

@Anonymous 

Sarah,

 

Create a custom or conditional sort order column where values for  jan is 1, feb is 2 etc.

Then select the column you want to sort in Data view, then choose "sort by column" drop down to select the column you created in previous step.

 

If it helps, mark it as a solution.

Kudos are nice too.

Connect on LinkedIn
Anonymous
Not applicable

Hi again @VasTg , is there a way to put the actual month instead of saying "current"? I feel like it will be more visually appealing if the actual month was displayed... 

Thank you for all of your help! (I am new to Power BI)Capture.PNG

 

Sarah

Hmmm..Not that I know of.

 

Even with this approach, we are statically selecting the value "Current" on the slicer but internally choosing the latest month dynamically based on conditional/custom column.

 

I will defer to experts.

 

Also,  please update in this thread if you come across a solution.

Connect on LinkedIn
Anonymous
Not applicable

Thank you so much! I will try this... 

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

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