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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
bhuprakash
New Member

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

 

View solution in original post

3 REPLIES 3
bhuprakash
New Member

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

Happy to help 🙂

Ritaf1983
Super User
Super User

Hi @bhuprakash 
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

 

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

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.