Mastering IF Statements in Power Query - BI Gorilla
https://gorilla.bi/power-query/if-fuPower Query can definitely process logic like that. You can count the number of rows available in your source (like you do with Table.RowCount). In a next step you can then create an if statement that references the result of that step (a number). The first argument of your if statement however now references both step1 and step2 separated by a comma.
Error handling - Power Query | Microsoft Learn
learn.microsoft.com › en-us › power-queryDec 17, 2022 · Similar to how Excel and the DAX language have an IFERROR function, Power Query has its own syntax to test and catch errors. As mentioned in the article on dealing with errors in Power Query, errors can appear either at the step or cell level. This article will focus on how you can catch and manage errors based on your own specific logic. Note
IF Statement using Power Query
community.powerbi.com › t5 › DesktopFeb 2, 2017 · = if [DT_SCHED] < #date (2017,6,1) then "DELIVERY DATE JUNE 1ST" else if [DT_SCHED] < #date (2017,12,31) then "DELIVERY DATE DECEMBER 1ST" else null PQ is case sensitive and if...then...else is all lower case, just like null. Also mind your boundaries: in your information, June 1st is undefined; in the code above it returns December 1.