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
Abhijsrwala1
Frequent Visitor

Recreate SumIF in PowerBI

I am stuck at this SUMIF function and can't get a clue to convert in dax. Can anyone explain me in words the meaning of this Statement and how to replicate in PowerBI?

Abhijsrwala1_0-1654760439913.png

=(SUMIFS(O:O,K:K,">="&W2,K:K,"<="&EOMONTH(W2,0)))/(SUMIFS(L:L,K:K,">="&W2,K:K,"<="&EOMONTH(W2,0)))

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Abhijsrwala1,

It seems like a calculator to divide between two conditions sum calculations. You can try to use sumx function to aggregate records with conditions.

formula =
DIVIDE (
    SUMX ( FILTER ( Table1, condtion ), [Column] ),
    SUMX ( FILTER ( Table2, condtion2 ), [Column2] )
)

If the above formula is not hlep, can you please share some dummy data that keep the raw data structure with expected results? It should help us clarify your scenario and test to coding formula.

How to Get Your Question Answered Quickly  

Regards,

Xiaoxin Sheng

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Hi @Abhijsrwala1,

It seems like a calculator to divide between two conditions sum calculations. You can try to use sumx function to aggregate records with conditions.

formula =
DIVIDE (
    SUMX ( FILTER ( Table1, condtion ), [Column] ),
    SUMX ( FILTER ( Table2, condtion2 ), [Column2] )
)

If the above formula is not hlep, can you please share some dummy data that keep the raw data structure with expected results? It should help us clarify your scenario and test to coding formula.

How to Get Your Question Answered Quickly  

Regards,

Xiaoxin Sheng

Anonymous
Not applicable

CALCULATE(SUM(), FILTER(table, condition))

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.