Microsoft Fabric Community Conference 2025, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount.
Register nowThe Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.
I want to create a DAX measure that base on specific filters but remove specific page filter
Solved! Go to Solution.
Hi @sagi_b ,
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 @sagi_b ,
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.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.
If you love stickers, then you will definitely want to check out our Community Sticker Challenge!
User | Count |
---|---|
140 | |
71 | |
64 | |
52 | |
50 |
User | Count |
---|---|
209 | |
92 | |
64 | |
59 | |
56 |