The ultimate Microsoft Fabric, Power BI, Azure AI, and SQL learning event: Join us in Stockholm, September 24-27, 2024.
Save €200 with code MSCUST on top of early bird pricing!
Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started
Hi all,
I have the following situation:
I would like to define number 0 to On Time, 2 to Delayed... but this SWITCH function doesnt support comparing values of type integer with values of type text...
Any suggestions?
Many thanks!
Solved! Go to Solution.
Don't put the number in between inverted commas.
i.e.
Column = SWITCH('Fact WaitingroomInsights'[Time],0,"On Time",2,"Delayed",-4,"Earlier than planned",8,"Other")
Note:
1) Only put text in between inverted commas.
2) If this doesn't work, make sure your the Time column's data type is Whole Number by going to Edit Queries.
Don't put the number in between inverted commas.
i.e.
Column = SWITCH('Fact WaitingroomInsights'[Time],0,"On Time",2,"Delayed",-4,"Earlier than planned",8,"Other")
Note:
1) Only put text in between inverted commas.
2) If this doesn't work, make sure your the Time column's data type is Whole Number by going to Edit Queries.
Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.
Check out the August 2024 Power BI update to learn about new features.
User | Count |
---|---|
111 | |
79 | |
71 | |
48 | |
41 |
User | Count |
---|---|
138 | |
108 | |
71 | |
64 | |
58 |