Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hi
I have a table name prod_cable. Column Name : minorgroup
Minor group has the following values. 4" Set , 5" Set, 6" set, etc...
I wanted to create a calculated column.
prod_Cable[minorgroup] = 4"set , then value is 18
prod_Cable[minorgroup]=5" set, then vlaue is 20... etc
Kindly advise.
Regards
SRK
Solved! Go to Solution.
With my test the issue is the " sign of 4" Set, power bi cannot read "" quotes properly when your cell includes ". To workaround this issue for now, you may replace 4" Set to 4' Set, basically you can use any sign other than ".
Then use the Switch formula from above replace the quote parts to "4' Set", "5' Set", etc.
Paul Zheng _ Community Support Team
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
With my test the issue is the " sign of 4" Set, power bi cannot read "" quotes properly when your cell includes ". To workaround this issue for now, you may replace 4" Set to 4' Set, basically you can use any sign other than ".
Then use the Switch formula from above replace the quote parts to "4' Set", "5' Set", etc.
Paul Zheng _ Community Support Team
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
am getting the following error..
Hi,
Looks like there is an issue with quotes used.
Please try any one of the below
Column =
SWITCH(prod_Cable[minorgroup],
"4"set", 18,
"5"set", 20,
"Other"
)
OR using NESTED IF Condition:
Column =
IF(
prod_Cable[minorgroup] = "4"set",18,
prod_Cable[minorgroup] = "4"set",20,
"Other"
)
Thanks
Seems like maybe:
Column =
SWITCH('prod_cable'[minorgroup],
"4"" Set",18,
"5"" Set",20,
...
)
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
105 | |
93 | |
75 | |
62 | |
50 |
User | Count |
---|---|
146 | |
109 | |
106 | |
88 | |
61 |