The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.
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! | |