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
Rigoleto
Helper II
Helper II

SELECTEDVALUE()

hI,

 

I have this statement to resolve a comment value selected from a matrix, the problem or the help do I need is that if I filtered or select a record from the matrix it should be get the description from anothr tableas the code shown, I did code and run it bout only the message "multipel selection" has being shwoing, how can I select a record from the matrix and use that value like a key and resolve from another table?

 

 

AVERAGE = IF( ISFILTERED('New Line Balance Table'[NAME]), SELECTEDVALUE('Text Recommendations'[AVG_TEXT_RECOMMENDED], "Multiple Selections"), "No Selection")

2 REPLIES 2
Thejeswar
Resident Rockstar
Resident Rockstar

@Rigoleto,

You DAX Statement will return the value of 'Text Recommendations'[AVG_TEXT_RECOMMENDED] only when one 'New Line Balance Table'[NAME] is selected in the Slicer , when multiple Items are selected it will return "Multiple Selections" and when no selections are made in the slicer the statement would retuen "No Selections"

 

What do you mean by

 

how can I select a record from the matrix and use that value like a key and resolve from another table?

 

What is it exactly that you want to achieve? Can you clarify ??

v-piga-msft
Resident Rockstar
Resident Rockstar

Hi @Rigoleto,

 

Do you create a slicer with New Line Balance Table'[NAME]?

 

If you select the option in the slicer with New Line Balance Table'[NAME], based on the formula, your measure will always show ''Multiple Selections''.

 

I'm a little confused about your scenario, could you share some data sample which could reproduce your sceanrio and your desired output so that I can understand it better and get the solution?

 

Best Regards,

Cherry

Community Support Team _ Cherry Gao
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.