cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
michellerosen Frequent Visitor
Frequent Visitor

SUM into calculated column if value in another column is NULL

I'm trying to create a calculated column that with a date filter that adds together all the values in a row that is not found in a seperate column,.

Basically, 
I have null values in SB[Hours Worked]. I want to take a sum of all the SB[Scheduled] only if [Hours Worked] for that same date is null.

 

1 REPLY 1
Moderator v-sihou-msft
Moderator

Re: SUM into calculated column if value in another column is NULL

@michellerosen

 

Since you need to have the result sliced by current date, I think you should create a measure for that. Just filter the tablewith  non empty [Hours Worked] context.

 

=CALCULATE(SUM(SB[Scheduled]),FILTER(SB,SB[Hours Worked]<>BLANK()))

Can you share some sample data and expected result?

 

 

Regards,