Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!
As the title suggests, i want to assign a value to a column depending on another columns value. For example, if the a field in the 'car' column had a value between 0-9 i want the corressponding field in the 'cargroup' column to be 1. If the value in 'car' was 10-19 i want the value in 'cargroup' to be 2 and so on... What formula would i use to do this?
Solved! Go to Solution.
Column = SWITCH ( TRUE (), 'Table'[Car] >= 0 && 'Table'[Car] <= 9, 1, 'Table'[Car] >= 10 && 'Table'[Car] <= 19, 2, 3 )
User | Count |
---|---|
139 | |
113 | |
103 | |
73 | |
63 |
User | Count |
---|---|
136 | |
125 | |
107 | |
70 | |
61 |