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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
bdehning
Post Prodigy
Post Prodigy

Custom or Conditional Column

I currently have a custom column for Determining Reporting Location with the following.   

[Reporting Location Address1]&", "&[Reporting Location City]&", "&[Reporting Location State]&", "&[Reporting Location Zip Code]

 

I need to introduce a statement if "Reporting Location is "blank", replace with "Not Specified"

 

Can I add that to the Custom Column or should I introduce a Conditional Column to accomplish this?

 

1 ACCEPTED SOLUTION
bdehning
Post Prodigy
Post Prodigy

 I ended up creating A conditional Column and added a step to replace null with Not Specified.  I will try Merge Columns ion my next one.  

View solution in original post

6 REPLIES 6
bdehning
Post Prodigy
Post Prodigy

 I ended up creating A conditional Column and added a step to replace null with Not Specified.  I will try Merge Columns ion my next one.  

Ashish_Mathur
Super User
Super User

Hi,

I think you should do this in the Query Editor.  Use the Merge columns feature there.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
bdehning
Post Prodigy
Post Prodigy

The original Custom Column returns a null value, which shows up using term Blank in the visual.  

Seanan
Solution Supplier
Solution Supplier

Hi @bdehning 

You can add this as a custom column using the following code:

IF([CustomCol1] = BLANK(),"Not Specified",[CustomCol1])

It keeps saying error on the IF and not recognized.

 

IF([Reporting Location] = BLANK(), "Not Specified", [Reporting Location])

Hi @bdehning 

Does your Reporting Location column return the a blank name or the actual text "Blank"?

If you following these steps you should get your desired outcome:

PBIDesktop_zpqS01bxy1.png

 

 

If your column returns text "Blank" then use:

IF([Reporting Location] = "Blank", "Not Specified", [Reporting Location])

If the cell value is empty then use:

IF([Reporting Location] = BLANK(), "Not Specified", [Reporting Location])

It should look like this:

PBIDesktop_ldWQCNW8mY.png

 

 

 

 

 

 

 

If it is still returning an error could you please post a picture of your calculated column with the error message.

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors