Forum Discussion
Moniek
4 years agoResolver I
Dax countrows filter
Hi,
I have made the dax #mutaties with countrows of a table. I want to make a new formula that calculate the Verwacht% * total of the countrows.
For number 1: 30,1% * 2021 = 608.
Does anyone knows the dax? Thanks a lot!
If Verwacht % is a measure then you could use
Verwacht % * total = var total = CALCULATE( [#mutaties], ALLSELECTED()) return [Verwacht %] * total
4 Replies
- johnt75Super User
If Verwacht % is a measure then you could use
Verwacht % * total = var total = CALCULATE( [#mutaties], ALLSELECTED()) return [Verwacht %] * total- MoniekResolver I
Thanks! It works!
- BarthelSolution Sage
Hey,
This depends a bit on the broader filter context in the report. You could theoretically remove all filter context. The measure then looks like this:
New formula = [Verwacht %] * CALCULATE ( [#mutaties], REMOVEFILTERS () ) - Jos_WoolleySolution Sage
Hi,
Perhaps you mean:
MyMeasure = DIVIDE( [#mutaties], CALCULATE( [#mutaties], ALLSELECTED( 'Table' ) ) )Regards