Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. 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.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
142 | |
79 | |
64 | |
52 | |
46 |
User | Count |
---|---|
213 | |
89 | |
77 | |
66 | |
60 |