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
kahnailee
Advocate I
Advocate I

DAX SUMIFS equivalent **without** hardcoding criteria or slicer selection

I've tried searching forums on this and found FILTER, CALCULATE, RELATED, combo of everything and nothing appears to be working for what I'm trying to accomplish.

 

Goal: Determine total rebate dollars based on a supplier and brand, but NOT based on a hard-coded supplier or brand, nor based on a slicer selection. Well, not exclusively at least.

 

See my screenshot of example data, along with the desired output(s).

 

2019-06-11_11-00-30.jpg

 

1 ACCEPTED SOLUTION
TeigeGao
Solution Sage
Solution Sage

Hi @kahnailee ,

Please create a measure using the following query:

Rebate Dollars =
CALCULATE (
    MIN ( Table1[ExtendedPOCost] ),
    FILTER (
        ALL ( Table1 ),
        Table1[Date] = DATE ( 2019, 1, 1 )
            && Table1[Supplier] = MIN ( Table2[Supplier] )
            && Table1[Brand] = MIN ( Table2[Brand] )
    )
)
    * MIN ( Table2[Rebate] )

The result will like below:

PBIDesktop_1LQRZEir3U.png

Best Regards,

Teige

View solution in original post

1 REPLY 1
TeigeGao
Solution Sage
Solution Sage

Hi @kahnailee ,

Please create a measure using the following query:

Rebate Dollars =
CALCULATE (
    MIN ( Table1[ExtendedPOCost] ),
    FILTER (
        ALL ( Table1 ),
        Table1[Date] = DATE ( 2019, 1, 1 )
            && Table1[Supplier] = MIN ( Table2[Supplier] )
            && Table1[Brand] = MIN ( Table2[Brand] )
    )
)
    * MIN ( Table2[Rebate] )

The result will like below:

PBIDesktop_1LQRZEir3U.png

Best Regards,

Teige

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