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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

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
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.