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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request 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
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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