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.
Hi,
my name is Filip and I want to change True/False to 1/0 in new column.
But I cant find on the internet code which will work... 😞
Can you help me?
Thank you for help, have a nice day
Solved! Go to Solution.
Hi @FILIPKACZMAR
you can try
new_column =
IF(column_name = TRUE(),1,IF(column_name = FALSE(),0))
Regards
Hi @FILIPKACZMAR
you can try
new_column =
IF(column_name = TRUE(),1,IF(column_name = FALSE(),0))
Regards
Thank you 🙂
You're welcome 😀
User | Count |
---|---|
12 | |
8 | |
6 | |
6 | |
6 |
User | Count |
---|---|
24 | |
14 | |
13 | |
9 | |
7 |