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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.

Reply
salucas
Frequent Visitor

Keep some filters using ALL funcition

I have this measure to keep an value as constant according to a group, something like this:

 
TOTAL = CALCULATE (
    [SALES],
    FILTER (
        ALL(PRODUCTS),
        PRODUCTS[CATEGORY] = SELECTEDVALUE(PRODUCTS[CATEGORY])))
 
But i need to keep some filters, like [MONTH], [CITY] and [COLORS], how do i define these exceptions?
 
Thanks, 
Lucas.
1 ACCEPTED SOLUTION
Seanan
Solution Supplier
Solution Supplier

1 REPLY 1
Seanan
Solution Supplier
Solution Supplier

Hi @salucas 

 

You can use an ALLEXCEPT function. ALLEXCEPT function (DAX) - DAX | Microsoft Learn

Super User Signature.PNG

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

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