Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Don'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.

Reply
sagi_b
Helper I
Helper I

new measure with new filter but with no page filter

I want to create a DAX measure that base on specific filters but remove specific page filter

 

 

1 ACCEPTED SOLUTION
v-henryk-mstf
Community Support
Community Support

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]
    )
)

 

vhenrykmstf_0-1633571955832.png

 

For more details, you can read related blog as below:

How to use ALL and ALLEXCEPT Functions in Power BI DAX | Microsoft Power BI Kingdom (excelkingdom.bl...

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.

View solution in original post

3 REPLIES 3
v-henryk-mstf
Community Support
Community Support

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]
    )
)

 

vhenrykmstf_0-1633571955832.png

 

For more details, you can read related blog as below:

How to use ALL and ALLEXCEPT Functions in Power BI DAX | Microsoft Power BI Kingdom (excelkingdom.bl...

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.

amitchandak
Super User
Super User

@sagi_b , Try all(Table[Column]) or   Removefilters(Table[Column])  in a measure and check

Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here

CALCULATE(DISTINCTCOUNT(factCyclesStatus[cycle_id]),FILTER(factCyclesStatus,factCyclesStatus[new_status]="pending"),FILTER(dimCycleDate,dimCycleDate[total_seconds]>0),REMOVEFILTERS(dimCycleDate,dimCycleDate[cycle_date]))
 
its not working together ( filter and remove filters)

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

Find out what's new and trending in the Fabric community.