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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

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
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

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.