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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
Rabin87
Regular Visitor

How to replace blank value with text

I have already created a following dax to get  either "PM" or "Non PM" for all different values. However, there are blank values too, and the result is coming "PM","Non PM", and "Blank". i want to replace that "Blank" value to "Unknown". Can please somebody help me on that?

Role = if(find("PROJECT MANAGER",upper(role[Name]),1,0)>0,"PM","Non-PM")
1 ACCEPTED SOLUTION
v-yanjiang-msft
Community Support
Community Support

Hi @Rabin87 ,

According to your description, heres my solution.

vkalyjmsft_0-1635485973632.png

If my understanding is not accurate,could you show me more details?

 

Best Regards,
Community Support Team _ kalyj

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

3 REPLIES 3
v-robertq-msft
Community Support
Community Support

Hi, @Rabin87 

Have you followed the DAX formula posted by v-kalyj-msft to find the solution?

If so, would you like to mark his reply as a solution so that others can learn from it too?

Thanks in advance!

How to Get Your Question Answered Quickly 

 

Best Regards,

Community Support Team _Robert Qin

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

v-yanjiang-msft
Community Support
Community Support

Hi @Rabin87 ,

According to your description, heres my solution.

vkalyjmsft_0-1635485973632.png

If my understanding is not accurate,could you show me more details?

 

Best Regards,
Community Support Team _ kalyj

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

 

AlexisOlson
Super User
Super User

Like this?

Role =
IF (
    LEN ( role[Name] ) = 0, "Unknown",
    IF ( CONTAINSSTRING ( role[Name], "PROJECT MANAGER" ), "PM", "Non-PM" )
)

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.