Forum Discussion
Calcuate DAX help
- 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.
allexecpt not working.
Measure1 -
Sample
| Source | Process Date | Value | State |
| A | Blank | 20 | 01 |
| B | 03/30/2020 | 30 | 01 |
| B | 04/30/2020 | 40 | 01 |
Report: when slicer applied on Process Date (exmple value 04/30/2020) ,the report should show like below
the Source A values should not filtered out based on process date
| Source | state | Value |
| A | 01 | 20 |
| B | 01 | 40 |
Source
- V-lianl-msft6 years agoCommunity Support
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. - V-lianl-msft6 years agoCommunity Support
Hi Anonymous ,
Is this problem sloved?
If not, please let me know.Best Regards,
Liang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.