Microsoft is giving away 50,000 FREE Microsoft Certification exam vouchers!
Enter the sweepstakes now!Preparing for a certification exam? Ask exam experts all your questions on May 15th. Register now.
I want to create a DAX measure that base on specific filters but remove specific page filter
Solved! Go to Solution.
Hi @Anonymous ,
For your description, my suggestion could be to use functions such as all, alexcept, etc. In the test below, remove the external filter and keep only the selected filter of calendar year.
M1_ =
CALCULATE (
SUM ( 'Table'[Quantity] ),
ALLEXCEPT ( 'Table', 'Table'[Calendar Year] )
)
M2_ =
CALCULATE (
SUM ( 'Table'[Quantity] ),
FILTER (
ALL ( 'Table' ),
MAX ( 'Table'[Calendar Year] ) = 'Table'[Calendar Year]
)
)
For more details, you can read related blog as below:
The (ALL, ALLSELECTED & ALLEXCEPT) Code - Microsoft Power BI Community
If the problem is still not resolved, please provide detailed error information and let me know immediately. Looking forward to your reply.
Best Regards,
Henry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @Anonymous ,
For your description, my suggestion could be to use functions such as all, alexcept, etc. In the test below, remove the external filter and keep only the selected filter of calendar year.
M1_ =
CALCULATE (
SUM ( 'Table'[Quantity] ),
ALLEXCEPT ( 'Table', 'Table'[Calendar Year] )
)
M2_ =
CALCULATE (
SUM ( 'Table'[Quantity] ),
FILTER (
ALL ( 'Table' ),
MAX ( 'Table'[Calendar Year] ) = 'Table'[Calendar Year]
)
)
For more details, you can read related blog as below:
The (ALL, ALLSELECTED & ALLEXCEPT) Code - Microsoft Power BI Community
If the problem is still not resolved, please provide detailed error information and let me know immediately. Looking forward to your reply.
Best Regards,
Henry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Check out the April 2025 Power BI update to learn about new features.
Explore and share Fabric Notebooks to boost Power BI insights in the new community notebooks gallery.
User | Count |
---|---|
77 | |
76 | |
70 | |
49 | |
42 |
User | Count |
---|---|
62 | |
40 | |
32 | |
30 | |
28 |