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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

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
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

Find out what's new and trending in the Fabric Community.