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

need to show previous week as default value in slicer.

Hi Team,

Could someone please explain to me how to make last week's value the default in the Slicer visual? and send me some example PBIX files for reference.

1 ACCEPTED SOLUTION
lbendlin
Super User
Super User

Here's the general approach - adjust as needed.

- create a string representation of your date column, replace the latest date with a string "Latest"
- sort that new column by the original date column
- add a slicer or visual/page/report level filter
- set the filter to "Latest"
- publish the pbix to the workspace/app

View solution in original post

3 REPLIES 3
lbendlin
Super User
Super User

Here's the general approach - adjust as needed.

- create a string representation of your date column, replace the latest date with a string "Latest"
- sort that new column by the original date column
- add a slicer or visual/page/report level filter
- set the filter to "Latest"
- publish the pbix to the workspace/app

PBI_
Frequent Visitor

Hi @lbendlin,
Can you please provide me with an example PBIX file using this method.

lbendlin_0-1713905029774.png

 

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.