cancel
Showing results for 
Search instead for 
Did you mean: 
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]))

Did I answer your question? Mark my post as a solution! Appreciate your Kudos!! !!
Dashboard of My Blogs !! Connect on Linkedin

Learn Power BI Beginners !! Advance Power BI Concepts !! Power BI For Tableau User !! Learn Power BI in Hindi !!
Proud to be a Super User!

 

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
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

November Power BI Update 768x460.png

Check it Out!

Click here to read more about the November 2021 Updates!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.