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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

Reply
zsodf
Regular Visitor

Max value of slicer

Hello,

 

--> I created slicer :

_slicer = values('Table'[Colonne 1])

--> and measure :
_Measure = FIND(SELECTEDVALUE('_slicer'[Colonne 1]),MAX('Table'[Colonne 1]),1,0)

--> I have this :

zsodf_0-1670190890848.png

 

But I would like to have all summer when I selected summer -usa , I mean that :

 

Summer - usa

Summer - europe

Summer - asia

 

in my mesure maybe I have to specify that I want max of same word here it s summer but idk how

 

Is anyone have an Idea ?

 

Thanks

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

Hi @zsodf ,

 

This is my test table:

vyadongfmsft_0-1670205708476.png

 

Please extract [Colonne 1] column in Power Query.

 

Select  [Colonne 1] column - Add column - Extract  - Text Before Delimiter - enter "-"

vyadongfmsft_2-1670205928573.png

vyadongfmsft_1-1670205859592.png

 

You will get a table like this:

vyadongfmsft_3-1670206031756.png

 

Create a slicer:

slicer = SELECTCOLUMNS('Table',"Colonne 1",'Table'[Colonne 1],"Text Before Delimiter",'Table'[Text Before Delimiter])

vyadongfmsft_4-1670206085619.png

 

Create a measure:

Measure = FIND(MAX('Table'[Text Before Delimiter]),SELECTEDVALUE('slicer'[Colonne 1]),1,0)

 

Put measure into filter pane:

vyadongfmsft_5-1670206219050.png

 

I think this is the result you want:

vyadongfmsft_6-1670206266090.pngvyadongfmsft_7-1670206277364.png

Best regards,

Yadong Fang

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

1 REPLY 1
v-yadongf-msft
Community Support
Community Support

Hi @zsodf ,

 

This is my test table:

vyadongfmsft_0-1670205708476.png

 

Please extract [Colonne 1] column in Power Query.

 

Select  [Colonne 1] column - Add column - Extract  - Text Before Delimiter - enter "-"

vyadongfmsft_2-1670205928573.png

vyadongfmsft_1-1670205859592.png

 

You will get a table like this:

vyadongfmsft_3-1670206031756.png

 

Create a slicer:

slicer = SELECTCOLUMNS('Table',"Colonne 1",'Table'[Colonne 1],"Text Before Delimiter",'Table'[Text Before Delimiter])

vyadongfmsft_4-1670206085619.png

 

Create a measure:

Measure = FIND(MAX('Table'[Text Before Delimiter]),SELECTEDVALUE('slicer'[Colonne 1]),1,0)

 

Put measure into filter pane:

vyadongfmsft_5-1670206219050.png

 

I think this is the result you want:

vyadongfmsft_6-1670206266090.pngvyadongfmsft_7-1670206277364.png

Best regards,

Yadong Fang

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

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

February Power BI Update Carousel

Power BI Monthly Update - February 2026

Check out the February 2026 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.