Solved: PowerQuery if with multiple conditions AND OR ...
community.powerbi.com › t5 › DesktopJul 7, 2020 · Power Query doesn't understand lists (as far as I know). You are stuck with "or". if [Code]= "QW" and ([ClassOfService] = "W" or [ClassOfService]="E" or [ClassOfService]="T") then "Sunny" else if [Code]= "ER" and ([ClassOfService] = "B" or [ClassOfService]="A" or [ClassOfService]="L") then "Rainy" else if ([ClassOfService] = "C" or ... or [ClassOfService] = "J"]) then "Heritage" else if ([ClassOfService] = "S" or ... or [ClassOfService] = "W"]) then "Classic" else if ([ClassOfService] = "F ...
IF formula with multiple conditions in Power Query Editor
community.powerbi.com › t5 › DesktopJul 9, 2018 · I want to create a custom column in Power Query Editor which pulls the weight as per the conditions: All weights should be in Lbs (Pounds) (1 Oz = 0.0625 Lbs) If Execution Status = Closed Use Gross Weight (Delivery Item) If Execution Status = Cancelled Use Gross Weight (Sales Document Item) I tried to create two different columns one for Oz and one for Lbs as per below M Language.
Solved: PowerQuery if with multiple conditions AND OR ...
community.powerbi.com › t5 › DesktopAug 17, 2017 · Based on my test, the formula below should work in PowerQuery. =if [WorkitemAssetState]=64 and [WorkitemIsClosed]= false and [WorkitemIsDeleted]= false and ( [M_WorkitemStatus]="Reviewing" or [M_WorkitemStatus]= "Available" or [M_WorkitemStatus]= "Research" or [M_WorkitemStatus] = "Progressing" or [M_WorkitemStatus] = "Testing" or [M_WorkitemStatus] = "Resolved" or [M_WorkitemStatus] = "<none>" or [M_WorkitemStatus] = "" or [M_WorkitemStatus] = "-" ) and ( [M_DefectResolutionId]= "-" or ...