How to get the sum up value (((After))) filtered

mrchonginhk

Well-known Member
Joined
Dec 3, 2004
Messages
679
I have this DAX and is getting what I want which is to
DAX1= Calculate( SUMX( Data,Sum(Data[Pct]) ), filter( Data, Data[Attribute] in ALLSELECTED(Selector1[Choices]) ) )

However, each cell is still respective filtered value based on Choice.
Suppose there are 10 choices and if only 2 are selected, I want each cell to show the same 2 choice values added up instead of showing respective choice's value.

For example, The choices are A, B, C.... etc and the respective values after their are:
A=1, B=2,.... J=10

If the selected choices are B and C, then I want all cells are returning
2+3 = 5, ie all cells to return same 5

How to modify ?
Thanks
 

Excel Facts

When did Power Query debut in Excel?
Although it was an add-in in Excel 2010 & Excel 2013, Power Query became a part of Excel in 2016, in Data, Get & Transform Data.
Forget to mention, there is row context of [Choice] in the Visual.
So, how to make this DAX ignore row context of [Choice] in the visual, but also know to add up values of those two (selected) choices only?

Thanks
 
Upvote 0
does DAX have an AGGREGATE Function like excel, as that does exclude the hidden values
 
Upvote 0
hope this isn't too wild a guess, but can you use ALL(Choice) in the Filter statement?
 
Upvote 0

Forum statistics

Threads
1,223,237
Messages
6,170,924
Members
452,366
Latest member
TePunaBloke

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top