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
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
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!