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
Anonymous
Not applicable

Add a number to the column which is not blank

Hi experts,

I have two columns Date, SBO-CPP which has numeric values. Now I want to create another column with help of DAX which adds numeric 15 in SBO-CPP column which are not blank. If SBO CPP has null values for particular date then it should not add 15 to the row. 
Please note that 15 numeric value is coming from parameter which can be changed dynemically. In below image, first calculation is incorrect in SBO Delvd CPP column because Sum of SBO - CPP has blank value.

bhuprakash_0-1712309156943.png

 

1 ACCEPTED SOLUTION
Ritaf1983
Super User
Super User

Hi @Anonymous 
You can use If  in your measure :
SBO Delvd CPP = if(sum('yourtable'[SBO - CPP] <> blank(), sum('yourtable'[SBO - CPP]+15, 0)

If this post helps, then please consider Accepting it as the solution to help the other members find it more quickly

 

Regards,
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile

View solution in original post

3 REPLIES 3
Anonymous
Not applicable

thank you @Ritaf1983 for the solution. it worked for me

Happy to help 🙂

Regards,
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile
Ritaf1983
Super User
Super User

Hi @Anonymous 
You can use If  in your measure :
SBO Delvd CPP = if(sum('yourtable'[SBO - CPP] <> blank(), sum('yourtable'[SBO - CPP]+15, 0)

If this post helps, then please consider Accepting it as the solution to help the other members find it more quickly

 

Regards,
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

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!

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