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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

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
Sept PBI Carousel

Power BI Monthly Update - September 2024

Check out the September 2024 Power BI update to learn about new features.

September Hackathon Carousel

Microsoft Fabric & AI Learning Hackathon

Learn from experts, get hands-on experience, and win awesome prizes.

Sept NL Carousel

Fabric Community Update - September 2024

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