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

The 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.

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

Full Power BI Video 20 Hours YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

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! Prices go up Feb. 11th.

Feb2025 Sticker Challenge

Join our Community Sticker Challenge 2025

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

Jan NL Carousel

Fabric Community Update - January 2025

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