Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by attending the DP-600 session on April 23rd (pacific time), live or on-demand.
Learn moreNext up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now
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?
Solved! Go to Solution.
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.
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.
Hi,
I think you should do this in the Query Editor. Use the Merge columns feature there.
The original Custom Column returns a null value, which shows up using term Blank in the visual.
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:
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:
If it is still returning an error could you please post a picture of your calculated column with the error message.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Experience the highlights from FabCon & SQLCon, available live and on-demand starting April 14th.
| User | Count |
|---|---|
| 47 | |
| 44 | |
| 40 | |
| 20 | |
| 15 |
| User | Count |
|---|---|
| 70 | |
| 68 | |
| 32 | |
| 27 | |
| 25 |