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
For the below situation, I need output "Lunch" in Column A, if the value is not equal to "Burger" in Column B but is equal to "Burger" in Column C, and output in Column A should be "Dinner" if the value is not equal to "Spaghetti"in Column B but is equal to "Spaghetti" in Column C, else Column A should remain Blank. How can I do this in Power Query. Please help.
Solved! Go to Solution.
Insert a custom column and put following formula
if [Serving 1]<>"Burger" and [Serving 2]="Burger" then "Lunch" else
if [Serving 1]<>"Spaghetti" and [Serving 2]="Spaghetti" then "Dinner" else null
Insert a custom column and put following formula
if [Serving 1]<>"Burger" and [Serving 2]="Burger" then "Lunch" else
if [Serving 1]<>"Spaghetti" and [Serving 2]="Spaghetti" then "Dinner" else null
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 8 | |
| 7 | |
| 7 | |
| 4 | |
| 3 |