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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
NSSLynne
Regular Visitor

Multiple filters in DAX

Spec3£1 = calculate(
    SUMX('POD Report',[3. Spec Price]),
FILTER('POD Report','POD Report'[Site Attended?] = "Site attended but no work carried out - Customer Fault") || ('POD Report'[Site Attended?] = "Yes" && 'POD Report'[3. Spec Done?] = "Yes"))

 

 

I am struggling with the above - it looks ok but its not working... A function 'FILTER' has been used in a True/False expression that is used as a table filter expression. This is not allowed.  Please could anyone help?

1 ACCEPTED SOLUTION
rsbin
Super User
Super User

@NSSLynne ,

Believe your syntax for using SUMX is incorrect.  Please try this:

Spec3£1 = 
    SUMX( FILTER('POD Report','POD Report'[Site Attended?] = "Site attended but no work carried out - Customer Fault" || ('POD Report'[Site Attended?] = "Yes" && 'POD Report'[3. Spec Done?] = "Yes")),
    [3. Spec Price] )

Or I think you can simply use SUM:

Spec3£1_SUM = CALCULATE(
    SUM( 'POD Report'[3. Spec Price]),
    FILTER('POD Report','POD Report'[Site Attended?] = "Site attended but no work carried out - Customer Fault" || ('POD Report'[Site Attended?] = "Yes" && 'POD Report'[3. Spec Done?] = "Yes")))

to perhaps achieve the same result.

Hope one of these provides a solution to your issue:

Regards,

View solution in original post

2 REPLIES 2
NSSLynne
Regular Visitor

That has worked thank you so very much.

rsbin
Super User
Super User

@NSSLynne ,

Believe your syntax for using SUMX is incorrect.  Please try this:

Spec3£1 = 
    SUMX( FILTER('POD Report','POD Report'[Site Attended?] = "Site attended but no work carried out - Customer Fault" || ('POD Report'[Site Attended?] = "Yes" && 'POD Report'[3. Spec Done?] = "Yes")),
    [3. Spec Price] )

Or I think you can simply use SUM:

Spec3£1_SUM = CALCULATE(
    SUM( 'POD Report'[3. Spec Price]),
    FILTER('POD Report','POD Report'[Site Attended?] = "Site attended but no work carried out - Customer Fault" || ('POD Report'[Site Attended?] = "Yes" && 'POD Report'[3. Spec Done?] = "Yes")))

to perhaps achieve the same result.

Hope one of these provides a solution to your issue:

Regards,

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

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

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