I would like to calculate a subtotal using dax (not using the subtotal feature of matrix visual)
I want a measure that can calculate Client total for the displayed Shop without adding the client field itself to the visual
Best I could come up with was
but it just gives me a repeating 1200 across all shops as it should unless I add client field to the table.
How can I add filter context for the client into the measure if its not part of a visual?
Go to Solution.
@Credo Please try this as a "New Measure"
Test107 = CALCULATE(SUM(Test107Measure[Sales]),FILTER(ALL(Test107Measure),Test107Measure[Client]=SELECTEDVALUE(Test107Measure[Client])))
Proud to be a Datanaut !
View solution in original post
Add as measure
TotVal = CALCULATE(SUM(Table1[Sales]),ALLEXCEPT(Table1,Table1[Client]))
Thanks a lot
We're rolling out new Kudos Given badges. Find out how many Kudos you've given.
Learn about the award-winning innovation that was implemented across Microsoft’s Business Applications Communities.
Find out where you can attend!