Forum Discussion
Anonymous
6 years agoNot applicable
Calcuate DAX help
I have two measures Example: One is calculate(sum(value), filter(Table,table.source="a") Another measure is calculate (sum(value),filter( table.table.source="b") these measures are displaying...
- 6 years ago
Hi Anonymous ,
Using all will clear all context filtering conditions.
Choosing to use all or allexcept depends on the results you expect.
There is only one state where you can choose to use all.
Measure = CALCULATE(SUM('Table'[value]),FILTER(ALL('Table'),'Table'[source]="a"))There are several states that can choose to use allexcept
Measure = CALCULATE(SUM('Table'[value]),FILTER(ALLEXCEPT('Table','Table'[state]),'Table'[source]="a"))Best Regards,
Liang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
FarhanAhmed
6 years agoCommunity Champion
Try use ALL(Table) with your measure 1. This will exclude any external filter applied on measure.
If you want certain external filters to be applied on measure then use ALLEXCEPT (Table, [filtercolumn1],[filtercolumn2]... etc)....
calculate(sum(value), filter(All(Table),table.source="a")