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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
HENRIQSI
Frequent Visitor

Sumif in Power BI

Hello guys, need some help

I need to creat a columm in someway that in excel works with a SUMIF.

I have a table (image bellow), with a columm of products (Columm "Peça"), another with defects (Collum "Def"), and another with quantities (Collum "Qtd"). I need to create a extra columm that sum the quantities by PRODUCTS. Them after this i will use this columm to multiples another table (that have a indicator by products by defects. Someone know how to do this?
111111.png

1 ACCEPTED SOLUTION

Hi @HENRIQSI

 

New Column =
CALCULATE ( SUM ( TableName[Qtd] ), ALLEXCEPT ( TableName, TableName[Peca] ) )

View solution in original post

5 REPLIES 5
WolfBiber
Microsoft Employee
Microsoft Employee

Hey,

for me it is not clear want you exactly want to reach. Are you sure you want a column? 

Maybe post a screenshot in Excel to make it clear.

Greeetings.

Hello, thks for reply @WolfBiber.

Ok, look for my screenshot 1 at excel. I have this new columm ("NEWCOLUMM") that sum the quantities by product, using the function SUMIF (ps: my excel u can see as "SOMASE", portuguese version of excel).

I need this columm to multiplies with the values of columm "Ind. By Def" (Screenshot 2). That way, for each "Def" by "Peça" I will have my Indicator.

1.JPG2.JPG

Hi @HENRIQSI

 

New Column =
CALCULATE ( SUM ( TableName[Qtd] ), ALLEXCEPT ( TableName, TableName[Peca] ) )

This solved my problem tooo. thank you sir! 

Perfect!

Thank you @Zubair_Muhammad!

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.