Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
Hi All,
Hope you are doing great.
I tried to have a custom column where when Column X ="x" then Column A + Column B else Column A + Column C
But it throw me an error. Down below I include a screenshot for better understanding of my question:
Need help in this. Thank you!
Solved! Go to Solution.
Hi @Anonymous ,
It looks like you are trying to concatenate data.
This is usually due to you having a column that is not in text format, possibly in numeric format.
Try to use Number.ToText function to format the numeric value number to a text value
Best Regards,
Stephen Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @Anonymous ,
It looks like you are trying to concatenate data.
This is usually due to you having a column that is not in text format, possibly in numeric format.
Try to use Number.ToText function to format the numeric value number to a text value
Best Regards,
Stephen Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @Anonymous ,
Try removing these brackets:
Pete
Proud to be a Datanaut!
Tried that, but still the same.
Hi @Anonymous ,
Try using this:
if [Source Name] = "MFGPRO" then [Source Transformed] & [#"Vendor ID & Domain"]
else [Source Transformed] & [Vendor ID]
Pete
Proud to be a Datanaut!
You need to use smallcase in If, hence just replace If with if and problem will be solved. You have already corrected the syntax using Ba_Pete's suggestions.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
8 | |
6 | |
6 | |
6 | |
5 |
User | Count |
---|---|
9 | |
9 | |
8 | |
6 | |
6 |