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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
michellerosen
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
v-sihou-msft
Microsoft Employee
Microsoft Employee

@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,

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

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.

Top Solution Authors