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

Try your skills in the Power BI Dataviz World Championship! Round one ends June 26. Join now

Reply
Anonymous
Not applicable

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

 

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

 

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

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

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
Anonymous
Not applicable

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
Fabric Data Days is here Carousel

Fabric Data Days 2026

Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.

May Power BI Update Carousel

Power BI Monthly Update - May 2026

Check out the May 2026 Power BI update to learn about new features.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.