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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
oakfootballclub
Helper IV
Helper IV

how to set the slicer always select the maximum value of a field

Hi experts, how to create a slicer based on a column that it's value may changes by different refresh
but always select the maximum as default, and the slicer should be able to select multiple values.

do you know how to make it?

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi, @oakfootballclub 

I create a sample table:

vyohuamsft_0-1720405134234.png

Then create a caculated column and try the following dax:

IsMax = IF([Sales] = CALCULATE(MAX([Sales]), ALL('Table')), "Max", "Not Max")

Create a slicer based on an IsMax column. By default, the slicer is set to display a Max value. Use the selection pane to hide the slicer.

vyohuamsft_1-1720405339428.png

 

vyohuamsft_2-1720405436447.png

Assign a bookmark to a button or image, so when you click on it, the slicer will select the "maximum" value.

 

How to Get Your Question Answered Quickly 

Best Regards

Yongkang Hua

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

5 REPLIES 5
Anonymous
Not applicable

Hi, @oakfootballclub 

I create a sample table:

vyohuamsft_0-1720405134234.png

Then create a caculated column and try the following dax:

IsMax = IF([Sales] = CALCULATE(MAX([Sales]), ALL('Table')), "Max", "Not Max")

Create a slicer based on an IsMax column. By default, the slicer is set to display a Max value. Use the selection pane to hide the slicer.

vyohuamsft_1-1720405339428.png

 

vyohuamsft_2-1720405436447.png

Assign a bookmark to a button or image, so when you click on it, the slicer will select the "maximum" value.

 

How to Get Your Question Answered Quickly 

Best Regards

Yongkang Hua

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

elitesmitpatel
Super User
Super User

please share the pbix file 

bhanu_gautam
Super User
Super User

@oakfootballclub , To achieve this we can use Custom column and Measure

 

First create a calculated column which identifies maximum value in the column you want to use for the slicer

MaxValueFlag =
IF(
'YourTableName'[YourColumnName] =
CALCULATE(MAX('YourTableName'[YourColumnName]), ALL('YourTableName')),
1,
0
)

 

Then create a measure to identify the maximum value in that column


MaxValue = CALCULATE(MAX('YourTableName'[YourColumnName]), ALL('YourTableName'))

 

Create a Slicer:

Add a slicer to your report.
Drag the column you want to use for the slicer to the slicer visual.
Set the Default Selection to the Maximum Value:

To set the default selection to the maximum value, you need to use a bookmark.
First, select the slicer and choose the maximum value manually.
Go to the View tab and enable Bookmarks.
Click on Add to create a new bookmark and name it (e.g., "DefaultMaxValue").
Make sure the slicer is set to allow multiple selections by enabling the "Select Multiple" option in the slicer settings.

 




Did I answer your question? Mark my post as a solution! And Kudos are appreciated

Proud to be a Super User!




LinkedIn






you mean that there are two pages according to bookmark, one page is max value and the other is other multiple selection page? how to make it without bookmark?

Actually there is one bookmark for Default slicer setting and other is slicer setting to allow mutiple selections

 

Currently there is no other way to set default slicer value




Did I answer your question? Mark my post as a solution! And Kudos are appreciated

Proud to be a Super User!




LinkedIn






Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.