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
Anonymous
Not applicable

SUMIFS in excel to power bi with multiple criteria

Hi I am having trouble implementing a column with this excel formula:

=SUMIFS(sum_range,criteria_range1,criteria1,criteria_range2_criteria2)  into power bi. 

I tried implementing in excel and load it to power bi using one excel file, it worked but I have multiple excel files using this formula, and when I use the get data from folders, combining the multiple excel files as one and load it, there are blanks for this column with the formula. That's why I want to implement this forumla in Power BI.

I know that CALCULATE together with SUM is the SUMIFS in Power BI but the filter part [ column =" "] is only specific to it.

The following column is a example of the kind of data I'm doing.

 

I need to implement column E into power BI

in excel i used  SUMIFS($D:$D,$A:$A,A2,$C:$C,C2), so my criteria is based on each row's location and date. Any idea on how to replicate column E in Power BI as a calculated column in data model? Column A,B,C and D are already generated in the data model. To better help in understanding, the visual in power BI I'm using is a pie chart with Column B as the Legend, Column C as the Date and Column F as the values. I have 2 slicers controlling the date and location. I know that piechart already has a details section where you can change the pie chart to show the percent of the day for you already, but I still need that Column F for other uses. Would be greatful if anyone can help me solve this!

Table example:

 ABCDEF
1LocationMenu ItemDateOrdersTotal orders of the dayPercentage of the day
2Eastfries01/02/2001205536.36%
3Westfries01/02/2001354872.92%
4Southfries01/02/2001172958.62%
5Eastburger01/02/2001355563.64%
6Westburger01/02/2001134827.08%
7Southburger01/02/2001122941.38%
1 ACCEPTED SOLUTION
dedelman_clng
Community Champion
Community Champion

Hi @Anonymous - is this what you're looking for?

 

All Orders (per location and date)

All Orders =
CALCULATE (
    SUM ( Orders[Orders] ),
    ALLEXCEPT ( Orders, Orders[Location], Orders[Date] )
)

 

Percentage of the Day

Pct of the Day = DIVIDE(SUM(Orders[Orders]), [All Orders], 0)

 

2020-09-25 08_14_33-Window.png

 

Hope this helps

David

 

View solution in original post

2 REPLIES 2
dedelman_clng
Community Champion
Community Champion

Hi @Anonymous - is this what you're looking for?

 

All Orders (per location and date)

All Orders =
CALCULATE (
    SUM ( Orders[Orders] ),
    ALLEXCEPT ( Orders, Orders[Location], Orders[Date] )
)

 

Percentage of the Day

Pct of the Day = DIVIDE(SUM(Orders[Orders]), [All Orders], 0)

 

2020-09-25 08_14_33-Window.png

 

Hope this helps

David

 

Hi,

I need the sumif formula from a text column. there are 2 columns one is quantity and another column denoting 2 break up (ok production & scrap). I need a formula which will calculate the total of Ok production quantity and divide with total Quantity.

can anyone help me with the formula.

 

Regards,

Shivani

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.