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
mim
Advocate V
Advocate V

measure to retrieve the selected value in the same Table

I want to build a measure that return the selected value in the same viusal for example, if the user select france, then the measure return 30 and ignore the filter context of the dimension country.

probably it is easy, but can't figure out how to escape the filter context, tried disconnectd table without success.

thanks 

mim_0-1594088016421.png

 

5 REPLIES 5
v-eachen-msft
Community Support
Community Support

Hi @mim ,

 

I don't think it is possible in the same table. When you click on this row, the context has been filtered. You could do it with slicer or in another table.

1-1.PNG

 

Community Support Team _ Eads
If this post helps, then please consider Accept it as the solution to help the other members find it.

 Thanks, I know it can be done in another table, but in this particular use case, it has to be in the same table, trying to reproduce a Tableau report, all good

Anonymous
Not applicable

interesting but does not seem possible!

amitchandak
Super User
Super User

@mim ,

Try like

measure =
var _m1 = sumx(allselected(Table),Table[value])
return
calculate(_m1,all(Table))

 

or

 

measure =
var _m1 = sumx(allselected(Table),Table[value])
return
calculate(_m1,removefilters(Table[country]))

 

it does not work, when I click on italy, I expect the measure to return 55 for all rows

mim_0-1594089548853.png

 

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.

Top Solution Authors