Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
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.
@sagi_b , Try all(Table[Column]) or Removefilters(Table[Column]) in a measure and check
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
118 | |
81 | |
48 | |
37 | |
27 |
User | Count |
---|---|
185 | |
73 | |
73 | |
50 | |
42 |