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.
I'm looking to create a new column with several IF and OR arguments but there is only a max of 2 allowed.
I have seen that || can be used, but I'm unsure of where to use it. I'm relatively new to PowerBi.
Solved! Go to Solution.
hi @jshiv
aha, try like:
I tried it, but keep getting the following error;
A single value for column 'NBR' in table 'LT' cannot be determined. This can happen when a measure formula refers to a column that contains many values without specifying an aggregation such as min, max, count, or sum to get a single result.
Yes I am
hi @jshiv
try like:
column =
SWTICH(
[NBR],
6002 || 7102 || 7087, "ON1",
6063 || 7101 || 6081 || 6080, "AB",
7103 || 6097 || 6098 || 6093, "ON2",
6072 || 6064, "BC",
6083, "SK",
"unknown"
)
I tried inputting a New Column instead of a New Measure and get the following error:
Function 'SWITCH' does not support comparing values of type Integer with values of type True/False. Consider using the VALUE or FORMAT function to convert one of the values.
hi @jshiv
aha, try like:
Perfect, thank you!!!
User | Count |
---|---|
20 | |
14 | |
11 | |
8 | |
6 |
User | Count |
---|---|
23 | |
23 | |
20 | |
15 | |
10 |