Starting December 3, join live sessions with database experts and the Microsoft product team to learn just how easy it is to get started
Learn moreGet certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register now
Attempting to create a custom column in query however the results are always error.
I have a column called office in table 1 that I want to create a custom column from.
If[office]="A" and [size]="small" or "medium" or "large"
then "normal"
else "xlarge"
Solved! Go to Solution.
@mjackson122 , Try like
In power query
If[office]="A" and ([size]="small" or [size]= "medium" or [size]= "large")
then "normal"
else "xlarge"
or
If[office]="A" and [size] in {"small", "medium","large"}
then "normal"
else "xlarge"
in DAX
If ([office]="A" && [size] in {"small", "medium","large"} ,"normal" ,"xlarge")
@mjackson122 , Try like
In power query
If[office]="A" and ([size]="small" or [size]= "medium" or [size]= "large")
then "normal"
else "xlarge"
or
If[office]="A" and [size] in {"small", "medium","large"}
then "normal"
else "xlarge"
in DAX
If ([office]="A" && [size] in {"small", "medium","large"} ,"normal" ,"xlarge")
Thanks the first one worked. I originally tried the second option you listed but forgot to include "in",
Thanks for your help.
Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early Bird pricing ends December 9th.
User | Count |
---|---|
92 | |
86 | |
85 | |
66 | |
49 |
User | Count |
---|---|
140 | |
113 | |
106 | |
64 | |
60 |