Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
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
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 19 | |
| 10 | |
| 9 | |
| 7 | |
| 6 |