The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
I whish to convert a column of text into numbers. The text in the column is either <Active>, <Completed> or <Cannceled>. I want <Active> to have the value 1, <Completed> to have the value 2 and so on.
In advance, thank you!
Solved! Go to Solution.
StatusCode =
SWITCH ( Test[Status],
"Active", 1,
"Canceled", 2,
"Completed", 3
)
StatusCode =
SWITCH ( Test[Status],
"Active", 1,
"Canceled", 2,
"Completed", 3
)
User | Count |
---|---|
13 | |
8 | |
6 | |
6 | |
5 |
User | Count |
---|---|
24 | |
14 | |
13 | |
8 | |
8 |