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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Reply
JbPa33
Helper I
Helper I

Retrieve the value of a slicer "between"

Hello,

 

I have this Slicer : 

JbPa33_0-1686832518293.png

I would like to create a measure which retrieve the value "1,89%". As the slicer is a continue value, the function "SELECTEDVALUE" doesn't work.

 

Is There an another solution ?

 

Thank you

1 ACCEPTED SOLUTION
danextian
Super User
Super User

Hi @JbPa33 ,

 

As per documentation SELECTEDVALUE returns the value when the context for columnName has been filtered down to one distinct value only. Otherwise returns alternateResult. there are multiple values from 0 to 1.89%. In order to get 1.89% which is the highest in the range selected, use MAX instead.










Did I answer your question? Mark my post as a solution!


Proud to be a Super User!









"Tell me and I’ll forget; show me and I may remember; involve me and I’ll understand."
Need Power BI consultation, get in touch with me on LinkedIn or hire me on UpWork.
Learn with me on YouTube @DAXJutsu or follow my page on Facebook @DAXJutsuPBI.

View solution in original post

3 REPLIES 3
JbPa33
Helper I
Helper I

Thnak you for your answers !

cThennakoon
Regular Visitor

You can use the below measure to return the 1,89%

measure = MAX(table[fieldname])

danextian
Super User
Super User

Hi @JbPa33 ,

 

As per documentation SELECTEDVALUE returns the value when the context for columnName has been filtered down to one distinct value only. Otherwise returns alternateResult. there are multiple values from 0 to 1.89%. In order to get 1.89% which is the highest in the range selected, use MAX instead.










Did I answer your question? Mark my post as a solution!


Proud to be a Super User!









"Tell me and I’ll forget; show me and I may remember; involve me and I’ll understand."
Need Power BI consultation, get in touch with me on LinkedIn or hire me on UpWork.
Learn with me on YouTube @DAXJutsu or follow my page on Facebook @DAXJutsuPBI.

Helpful resources

Announcements
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

Power BI Carousel June 2024

Power BI Monthly Update - June 2024

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

PBI_Carousel_NL_June

Fabric Community Update - June 2024

Get the latest Fabric updates from Build 2024, key Skills Challenge voucher deadlines, top blogs, forum posts, and product ideas.

Top Solution Authors