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
nehakurseja
Regular Visitor

Add conditional column - How to specify blank in the value box for a text column.

I wish to set calue of 'Custom_nk' as no if the value in 'results' column is BLANK. Datatype of 'results' column is string. Please assist.

 

nehakurseja_0-1606511741874.png

1 ACCEPTED SOLUTION
v-stephen-msft
Community Support
Community Support

Hi @nehakurseja ,

 

You may try this calculated column.

Custom_nk = IF([results]=BLANK(),"no")

8.png

 

Reference: Tutorial: Create calculated columns in Power BI Desktop

 

 

 

Best Regards,

Stephen Tao

 

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

 

View solution in original post

5 REPLIES 5
Anonymous
Not applicable

For blanks comparison in conditional column, you can actually write null like below - 

 

raimon_0-1611125880597.png

 

v-stephen-msft
Community Support
Community Support

Hi @nehakurseja ,

Could you tell me if your problem has been solved?
If it is, kindly Accept it as the solution. More people will benefit from it.
Or you are still confused about it, please provide me with more details about your table and your problem or share me with your pbix file from your Onedrive for Business.


Best Regards,
Stephen Tao

v-stephen-msft
Community Support
Community Support

Hi @nehakurseja ,

 

You may try this calculated column.

Custom_nk = IF([results]=BLANK(),"no")

8.png

 

Reference: Tutorial: Create calculated columns in Power BI Desktop

 

 

 

Best Regards,

Stephen Tao

 

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

 

Nathaniel_C
Super User
Super User

Hi @nehakurseja ,

 

null.PNG
Use "" as in the picture if it is a string, null if it is number.


Let me know if you have any questions.

If this solves your issues, please mark it as the solution, so that others can find it easily. Kudos 👍are nice too.
Nathaniel





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




HotChilli
Super User
Super User

""

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.