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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Reply
hmirones
New Member

SUM or SUMX

Hello,

 

I'm a total newbie in Power BI, and I need help with, I know in excel there is a SUMIF function, I got two columns.

 

Column A = Processes

Column B = Errors

 

I want only sum the errors of an specific type of Process without taking in consideration the other ones.

 

Please help, Thanks!

2 ACCEPTED SOLUTIONS
Vvelarde
Community Champion
Community Champion

@hmirones

 

Hi, You can Use:

 

Measure=Calculate(Sum(Table1[ColumnB]), Filter(Table1, Table1[ColumnA]=DESIRE TYPE))

 

Regards

 

Victor

Lima - Peru




Lima - Peru

View solution in original post

jthomson
Solution Sage
Solution Sage

CALCULATE(SUM([Errors]),Processes="oneyouwanttocount")

View solution in original post

3 REPLIES 3
Alliejane08
Regular Visitor

Hello,

I am trying to calculate the incident rate by recordable incidents in Power Bi. I have it specified to pull the recordable incidents, but in the calculation I am using it is totaling all hours over all years. I need to know how to tell the function to only do YTD total or specify the calculation by year.

 

This is the measure I came up with

TRR = COUNT(IncidentReports[SeverityType])*200000/(SUMX(HoursWorkedCompilation,HoursWorkedCompilation[Manhours]))

 

The Hours Worked Table has multiple columns, the column is is pulling from has Man Hours. There is a separate column that specifies the year, but I cannot figure out how to tell it to do that.

 

HELP!

jthomson
Solution Sage
Solution Sage

CALCULATE(SUM([Errors]),Processes="oneyouwanttocount")

Vvelarde
Community Champion
Community Champion

@hmirones

 

Hi, You can Use:

 

Measure=Calculate(Sum(Table1[ColumnB]), Filter(Table1, Table1[ColumnA]=DESIRE TYPE))

 

Regards

 

Victor

Lima - Peru




Lima - Peru

Helpful resources

Announcements
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

Power BI Carousel June 2024

Power BI Monthly Update - June 2024

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

PBI_Carousel_NL_June

Fabric Community Update - June 2024

Get the latest Fabric updates from Build 2024, key Skills Challenge voucher deadlines, top blogs, forum posts, and product ideas.

Top Solution Authors