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
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
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel

Power BI Monthly Update - May 2024

Check out the May 2024 Power BI update to learn about new features.

LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.