March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
Hello,
Relatively new to Power BI. I am just using one table here. I just want to retrieve the value (simply get the value, no calculation) of one column, based on a condition of another column, and place that value into a new, third column.
So for example:
Animal Type New Column
Beaver Mammal
Lizard Reptile
Monkey Mammal
Snake Reptile
If the Type = Mammal then I'd like the Animal value placed in New Column. How is this done??
Result should be this:
Animal Type New Column
Beaver Mammal Beaver
Lizard Reptile
Monkey Mammal Monkey
Snake Reptile
Bonus points for putting a value in the blanks, like "null" or "NA". Thanks.
Solved! Go to Solution.
Hi,@faronicus
I am glad to help you.
You could try this:
New Column = IF('Table'[Type] = "Mammal", 'Table'[Animal], BLANK())
New Column2 = IF('Table'[Type] = "Mammal", 'Table'[Animal], "NA")
the test result :
I hope my suggestions give you good ideas, if you have any more questions, please clarify in a follow-up reply.
Best Regards,
Carson Jian,
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Thank you, that's what I wanted!
Hi,@faronicus
I am glad to help you.
You could try this:
New Column = IF('Table'[Type] = "Mammal", 'Table'[Animal], BLANK())
New Column2 = IF('Table'[Type] = "Mammal", 'Table'[Animal], "NA")
the test result :
I hope my suggestions give you good ideas, if you have any more questions, please clarify in a follow-up reply.
Best Regards,
Carson Jian,
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
25 | |
18 | |
15 | |
9 | |
8 |
User | Count |
---|---|
37 | |
32 | |
21 | |
16 | |
14 |