Or formula in power query. Yet the syntax may vary slightly. This is because power query starts counting from 0. The if function is the starting point of writing any conditional statement in excel and so it is in power query.
In fact the power query versions of if or and if and are even easier than the excel equivalents. Differences between excel and power query. If if condition then true expression else false expression all programming languages use if statements and they often look very similar.
I am using power bi desktop and i have imported a table from a sql database. The syntax of a basic if function in power query is as follows. I consider if in power query to be easier than excel purely because you can write if and even nested if without using the formula bar simply using the interface.
It may seem odd to most excel users but it is common in the world of programming languages. The excel function returns a value of 1 while the power query function returns a value of 0. Power query if statements are a bit different to writing if formulas in excel but once you get the hang of them theyre pretty easy.
The power query m formula language includes a set of operators that can be used in an expression. For example the if function in excel looks like. I would like to use an if statement that checks multiple criteria using or rather than a bunch of nested if else statements.
I am under data edit query add column custom colunn and having problems getting my formula to work.