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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

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
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

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
Top Kudoed Authors