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
Till
Resolver II
Resolver II

Include slicer value in Measure

Hi All,

Transferring a value from a slicer into a measure is no problem with selectedvalue.
I have a table for the values:
Screenshot 2020-10-16 043136.png

 Measure:

f_empl_selected_value_aht := SELECTEDVALUE(
Tabelle[Value]
)
It works fine:
Screenshot 2020-10-16 043354.png
if i now change the filter from a dropdown to a controller it no longer works:
Screenshot 2020-10-16 043948.png

 

I think I have read that selected value does not work here.

Does anyone have a tip?

Thanks
Till
 
4 ACCEPTED SOLUTIONS
Ashish_Mathur
Super User
Super User

Hi,

Selectedvalue() will return only 1 value.  use MIN() or MAX() function instead.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

View solution in original post

NamishB
Post Prodigy
Post Prodigy

Hi @Till- Are you trying to select all values in that range? 

For Eg: between 365 and 495? SELECTEDVALUE will not work in this case as it returns one result only? 

Try making the column as WholeNumber and Change Summarization to Sum.

Capture3.PNG

Capture2.PNG

Capture1.PNG

 

Hope this Helps.

 

Cheers,

-Namish B

View solution in original post

Hi Namish,
I always need only one value. I think the approach with Max or min is the right way. Unfortunately I do not know how to calculate the measure

KR

Till

View solution in original post

Hi @Till ,

 

In than case, you dont need SELECTEDVALUE() Function

Just use Min(ColumnName) or Max(ColumnName).

 

Capture4.PNG

Hope that works

 

Thanks,

Namish B

View solution in original post

7 REPLIES 7
NamishB
Post Prodigy
Post Prodigy

Hi @Till- Are you trying to select all values in that range? 

For Eg: between 365 and 495? SELECTEDVALUE will not work in this case as it returns one result only? 

Try making the column as WholeNumber and Change Summarization to Sum.

Capture3.PNG

Capture2.PNG

Capture1.PNG

 

Hope this Helps.

 

Cheers,

-Namish B

Hi Namish,
I always need only one value. I think the approach with Max or min is the right way. Unfortunately I do not know how to calculate the measure

KR

Till

Hi,

it`s works.

Thanks and be healthy

Hi @Till ,

 

In than case, you dont need SELECTEDVALUE() Function

Just use Min(ColumnName) or Max(ColumnName).

 

Capture4.PNG

Hope that works

 

Thanks,

Namish B

Hi,

It should always return the value selected in the slicer. As said, in a dropdown no problem.

Screenshot 2020-10-16 065115.png

 

(Measure with min)

In this example 408
KR

Till

Ashish_Mathur
Super User
Super User

Hi,

Selectedvalue() will return only 1 value.  use MIN() or MAX() function instead.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Hi,

 

Thanks for your answer,
at the moment I'm a little bit out of place. can you send me a measure example ?

Kind Regards
Till

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.