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

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.

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
September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

Top Kudoed Authors