Starting December 3, join live sessions with database experts and the Microsoft product team to learn just how easy it is to get started
Learn moreGet certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register now
Hi All,
I am trying to adding a new column basically combining the data from the first two columns (marked A & B in the image).
If column A has a A, new column = A.
Or if column A is null, new column = B.
I tried to use 'add column' and 'add conditioned column' and both came back with the same result - new column is only picking up value from column A but not column B.
Can someone please help and tell me what I have done wrong??
I changed the data type after adding the new column but doesn't solve the problem.
Thank you.
Hi @yc-bsa ,
After trying what @Gabriel_Walkman said, does the problem still exist?
If the problem persists, could you share a sample pbix after deleting sensitive data?
Best Regards,
Liang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @V-lianl-msft ,
No, that doesn't solve the problem.
I am unable to attach the file so I did another screenshot to show what the problem is if that helps to clarify my question.
I'd guess empty is not the same as N/A. Try N/A or null instead of that empty field in your conditional column.
Hi Gabriel,
Thanks for your reply. I did try using null.type but same result (only pick up from column A)
Try "N/A" instead of Null.Type. Or replace the N/A values to null and then check for null (not Null.Type).
Hi Gabirl,
Thanks for your help, but both null and 'N/A' are part of the data so I cannot replace them.
Somehow I cannot attach the file so I have attached a photo of the sample data, hopefully that helps to explain better what I am trying to ask:
- if column 'ID category' has a value, column 'Category' should equal to this value no matter what (even if it's 'N/A');
-only if column 'ID category' is null, column 'Category' should equal to 'Type Category'
but as you can, my formula is only picking up value from 'ID category', even if it is null, it won't picking up fom 'type category'
Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early Bird pricing ends December 9th.
User | Count |
---|---|
87 | |
87 | |
84 | |
66 | |
49 |
User | Count |
---|---|
127 | |
109 | |
93 | |
70 | |
67 |