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
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
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.