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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. 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
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

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