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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

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] ) )

Regards
Zubair

Please try my custom visuals

View solution in original post

5 REPLIES 5
WolfBiber
Employee
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] ) )

Regards
Zubair

Please try my custom visuals

This solved my problem tooo. thank you sir! 

Perfect!

Thank you @Zubair_Muhammad!

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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