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.
I have a table with two columns: employees and their status.
What I'd like to do:
I'd like to classify the status into two categories: active and inactive.
I know I should create new table only with status and its assigned category, then make a relationship.
Questions:
1. How can I automatically classify status starting with number as 'inactive' category?
2. How can I automatically classify status with text 'idle' as 'inactive' category?
Original table:
employee | status |
John | idle |
William | 7861 |
Anna | training |
Frances | cleaning |
Jason | #foo |
Calculated table:
status | category |
idle | inactive |
7861 | inactive |
training | active |
cleaning | active |
#foo | inactive |
Solved! Go to Solution.
See response in other thread, catches everything except #foo, not sure of that one but if you can supply the rule, you can add it to the IF statement:
Column = IF(NOT(ISERROR(VALUE(LEFT([status],1)))) || [status] = "idle", "inactive", "active")
See response in other thread, catches everything except #foo, not sure of that one but if you can supply the rule, you can add it to the IF statement:
Column = IF(NOT(ISERROR(VALUE(LEFT([status],1)))) || [status] = "idle", "inactive", "active")
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 |
---|---|
113 | |
97 | |
80 | |
69 | |
59 |
User | Count |
---|---|
150 | |
119 | |
104 | |
87 | |
67 |