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

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.

Reply
manuellchavez
Advocate I
Advocate I

DAX Measure - Ignore specific filter but keep some others

Hello,

I am trying to create a visual similar to the one below:
Capture.PNG

The first measure is something like this:
Quantity = calculate(sum(quantity),filter(colortable, colortable[date]=max(masterdate[date])))
Then I add the color names from a column in the dataset.
This calculation is correct.
Now I want to add the total for that date regardless the color in a new column for the same visual using another measure, does anyone know how to keep the date filter in that measure, but skip the color name?

Note: I dont want to move any of the three measures to calculated columns, just keep them as measures.

1 ACCEPTED SOLUTION

Quantity =
CALCULATE (
    SUM ( colortable[quantity] ),
    FILTER ( ALL( colortable[date] ), colortable[date] = MAX ( masterdate[date] ) ),
    ALL ( colortable[color] )
)

If this doesn't work do share the pbix or at least a sample of your tables (in text-tabular format, not screen capture)

 

Please mark the question solved when done and consider giving kudos if posts are helpful.

Cheers  Datanaut

View solution in original post

4 REPLIES 4
Anonymous
Not applicable

HI @manuellchavez ,

Maybe you can try to use allexcept function, it only allows specific field filter which you defined in function:
Managing “all” functions in DAX: ALL, ALLSELECTED, ALLNOBLANKROW, ALLEXCEPT 
Regards,

XIaoxin Sheng

AlB
Community Champion
Community Champion

Hi @manuellchavez 

You'd just need an ALL on the colour column:

Quantity =
CALCULATE (
    SUM ( colortable[quantity] ),
    FILTER ( colortable, colortable[date] = MAX ( masterdate[date] ) ),
    ALL ( colortable[color] )
)

 

Please mark the question solved when done and consider giving kudos if posts are helpful.

Cheers  Datanaut

 Thanks for the response @AlB , unfortunatelly it is still not showing the total sum on each row, just the total for each color.

Quantity =
CALCULATE (
    SUM ( colortable[quantity] ),
    FILTER ( ALL( colortable[date] ), colortable[date] = MAX ( masterdate[date] ) ),
    ALL ( colortable[color] )
)

If this doesn't work do share the pbix or at least a sample of your tables (in text-tabular format, not screen capture)

 

Please mark the question solved when done and consider giving kudos if posts are helpful.

Cheers  Datanaut

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors