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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
paguy215
Helper III
Helper III

Show 'Null' or 'Other' instead of blank in a Matrix Visual

I have a report that looks up a store code to an excel file that lists out the store name.  However there are some store codes that do not have names, in which case the store name field shows up as blank in the visual.   However, I'd like it say 'null' or 'other' or some other term I can code in.   But i would want to account for any new store codes that might show up in the future.  So, if a store code isn't on the Excel file, it will say 'null' under store name...which means I can't really use things like EXCEPT or anything like that.   Is there an easy way to do this:

 

Simply put the excel file might say

Store CodeStore Name
223Store
224BigStore
225LittleStore
226

NewStore

 

The store code links to a table, which might hhave store 222 or store 227 or any other number.   I would want the store name to display as 'Null' and not blank in that case

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @paguy215 ,

 

According to your description, here are my steps you can follow as a solution.

(1) This is my test data. 

vtangjiemsft_0-1688958234193.png

(2) We can create a calculated column.

_Store Name = IF('Table'[Store Name]=BLANK(),"null",'Table'[Store Name])

(3) Then the result is as follows.

vtangjiemsft_1-1688958263777.png

 

If the above one can't help you get the desired result, please provide some sample data in your tables (exclude sensitive data) with Text format and your expected result with backend logic and special examples. It is better if you can share a simplified pbix file. Thank you.

 

Best Regards,

Neeko Tang

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

2 REPLIES 2
Anonymous
Not applicable

Hi @paguy215 ,

 

According to your description, here are my steps you can follow as a solution.

(1) This is my test data. 

vtangjiemsft_0-1688958234193.png

(2) We can create a calculated column.

_Store Name = IF('Table'[Store Name]=BLANK(),"null",'Table'[Store Name])

(3) Then the result is as follows.

vtangjiemsft_1-1688958263777.png

 

If the above one can't help you get the desired result, please provide some sample data in your tables (exclude sensitive data) with Text format and your expected result with backend logic and special examples. It is better if you can share a simplified pbix file. Thank you.

 

Best Regards,

Neeko Tang

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

paguy215
Helper III
Helper III

Actually I was able to figure it out using the LOOKUPVALUE formula...thanks!

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

Find out what's new and trending in the Fabric community.

July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.