Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Text | Text | Decimal Number | Text |
Severity | Calc Severity | Time Spent | Customer Reasons |
Severity 1 | 1 | 8.4 | HW/SW |
Severity 2 | 2 | 2.3 | Customer awaiting |
Severity 3 | 3 | 5.8 | |
Severity 4 | 4 | 6.4 | |
Severity 5 | 5 | 3.4 | |
Severity 6 | 6 | 3.2 |
I want to write 9 - 10 If Else, so thinking to go with Switch. I get error text and number datatype not supported, use value or Format function for one of them
Example If Severity = 2 OR Severity = 3 && Time Spent > 10 , "flag"
If Severity = 3 && Time spent > 4 && Customer Reason!= "HW/SW","Flag","Good"
Solved! Go to Solution.
Since severity is a text column, you need to check it accordingly.
Try this as a calculated column:
SWITCH (
TRUE (),
Table1[Severity] IN { "2", "3" } && Table1[Time Spent] > 10, "flag",
Table1[Severity] = 3 && Table1[Time spent] > 4 && Table1[Customer Reason] <> "HW/SW", "Flag",
"Good"
)
Since severity is a text column, you need to check it accordingly.
Try this as a calculated column:
SWITCH (
TRUE (),
Table1[Severity] IN { "2", "3" } && Table1[Time Spent] > 10, "flag",
Table1[Severity] = 3 && Table1[Time spent] > 4 && Table1[Customer Reason] <> "HW/SW", "Flag",
"Good"
)
Check out the July 2025 Power BI update to learn about new features.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
User | Count |
---|---|
65 | |
64 | |
56 | |
39 | |
27 |
User | Count |
---|---|
85 | |
59 | |
45 | |
43 | |
38 |