Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Hi
i would like to merge two columns- Ingredient Category & Additive Category into one, but removing the N/A.How can i do it? Thanks
Solved! Go to Solution.
Hi @longlongisi
Create conditional column in Power Query
or
with DAX
= SWITCH(
TRUE(),
Table[Ingredient Category] = "N/A",Table[Additive Category],
Table[Additive Category] = "N/A",Table[Ingredient Category])
Let me know if that works for you
If your requirement is solved, please mark THIS ANSWER as SOLUTION ✔️ and help other users find the solution quickly. Please hit the Thumbs Up 👍 button if this comment helps you.
Thanks
Pijush
Linkedin
Proud to be a Super User! | |
Hi @longlongisi
You want to do in Power Query or DAX
If Power Query, 1st replace the N/A value to Blank and merge Custom Column = [Ingredient Category]&[Additive Category]
Let me know if that works for you
If your requirement is solved, please mark THIS ANSWER as SOLUTION ✔️ and help other users find the solution quickly. Please hit the Thumbs Up 👍 button if this comment helps you.
Thanks
Pijush
Linkedin
Proud to be a Super User! | |
@PijushRoy Thanks, but i dont want to change the N/A to Null, is there any alternative solution?
Hi @longlongisi
Create conditional column in Power Query
or
with DAX
= SWITCH(
TRUE(),
Table[Ingredient Category] = "N/A",Table[Additive Category],
Table[Additive Category] = "N/A",Table[Ingredient Category])
Let me know if that works for you
If your requirement is solved, please mark THIS ANSWER as SOLUTION ✔️ and help other users find the solution quickly. Please hit the Thumbs Up 👍 button if this comment helps you.
Thanks
Pijush
Linkedin
Proud to be a Super User! | |
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
| User | Count |
|---|---|
| 97 | |
| 71 | |
| 50 | |
| 47 | |
| 44 |