Get certified for free when you join Fabric Data Days 2026 and dive into Fabric, Power BI, SQL, AI, and other essential data skills.
Join nowTry your skills in the Power BI Dataviz World Championship! Round one ends June 26. Join now
Hi, I'm new to Power Queries and am having trouble converting a formula to work in Power Query. I understand I use if/and/then/else, however I have created custom columns in my power query where a lot of the values are null and I'm getting error messages. My formula in excel is: =IF(AND($G28<="31/12/2018"*1,$H28=""),$K28,IF(AND($G28<="31/12/2018"*1,$H28<="31/12/2018"*1),$B28,IF(AND($G28<="31/12/2018"*1,$H28>"31/12/2018"*1),$K28,0))). Any advice would be helpful. Thanks.
Solved! Go to Solution.
You may refer to the post below.
https://community.powerbi.com/t5/Desktop/IF-Statement-using-Power-Query/td-p/122030
You may refer to the post below.
https://community.powerbi.com/t5/Desktop/IF-Statement-using-Power-Query/td-p/122030
Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.
Check out the May 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 23 | |
| 21 | |
| 20 | |
| 19 | |
| 13 |
| User | Count |
|---|---|
| 58 | |
| 52 | |
| 39 | |
| 31 | |
| 27 |