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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. 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
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.