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

If an entry in a row is blank (null) can I set a default value?

I have a table that has one column that sometimes has blank (null entries). Sorry for blocking out a lot of the entries in the table but I don't want to share private data which is understandable I hope. However, as you can see below, (where the red arrow is) there are two blank entries in the bottom two rows in the Technician column. How would I be able to set that to a default string called "Unassigned"?

KyleAdam_1-1612457801846.png

So instead of it coming up Blank in my analytics, as you can see below, it will show up "Unassigned" instead of the purple being blank? 

 

KyleAdam_2-1612458147069.png

 

I know there are some things you can change for visuals on the Analytics screen, but I can't change it on this one when it comes to being legend values, it won't allow me. That would be a simple solution if that could somehow be done but I've looked into it and saw no solution, unless I haven't looked hard enough?

Any help would be appreciated. 

 

 

 

1 ACCEPTED SOLUTION
Tahreem24
Super User
Super User

You can create below Column:

New Column = If( Table [Technician] = blank(), "Unassigned", Table[Technician]) 

 

Don't forget to give thumbs up and accept this as a solution if it helped you!!!

Please take a quick glance at newly created dashboards : Restaurant Management Dashboard , HR Analytics Report , Hotel Management Report, Sales Analysis Report , Fortune 500 Companies Analysis , Revenue Tracking Dashboard

View solution in original post

4 REPLIES 4
Tahreem24
Super User
Super User

You can create below Column:

New Column = If( Table [Technician] = blank(), "Unassigned", Table[Technician]) 

 

Don't forget to give thumbs up and accept this as a solution if it helped you!!!

Please take a quick glance at newly created dashboards : Restaurant Management Dashboard , HR Analytics Report , Hotel Management Report, Sales Analysis Report , Fortune 500 Companies Analysis , Revenue Tracking Dashboard
Anonymous
Not applicable

Thanks for the reply, when I tried to create a new custom column it said the if statement wasn't recognised?

KyleAdam_0-1612459990200.png

 

Do create that mentioned column using DAX not in Power Query. 

 

Don't forget to give thumbs up and accept this as a solution if it helped you!!!

Please take a quick glance at newly created dashboards : Restaurant Management Dashboard , HR Analytics Report , Hotel Management Report, Sales Analysis Report , Fortune 500 Companies Analysis , Revenue Tracking Dashboard
Anonymous
Not applicable

Thank you! Works a charm. 

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.