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,
I have a column Churn where the values are Yes/No need to be converted as 1 & 0 (Yes=1 , No=0). Can anyone assist me?
Solved! Go to Solution.
Hi @ch_01
Refer >> How to replace values in power bi (projectpro.io)
Select the columns of the values you want to replace.
Right-click on the data set in the Fields pane, click on the edit query option. This will redirect us to Power Query Editor then follow the below steps -
Transform -> Replace Values button -> Replace Values Option
Replace Yes with 1 and No with 0
After you click on the Replace Values option, a small window gets open where you can replace the old value with the new value.
Click on OK in the Replace Value window, it will replace the old value with the new value. Click on the Close & Apply button in order to apply all changes.
Regards,
Ritesh
Hi @ch_01
Refer >> How to replace values in power bi (projectpro.io)
Select the columns of the values you want to replace.
Right-click on the data set in the Fields pane, click on the edit query option. This will redirect us to Power Query Editor then follow the below steps -
Transform -> Replace Values button -> Replace Values Option
Replace Yes with 1 and No with 0
After you click on the Replace Values option, a small window gets open where you can replace the old value with the new value.
Click on OK in the Replace Value window, it will replace the old value with the new value. Click on the Close & Apply button in order to apply all changes.
Regards,
Ritesh
Thank you
User | Count |
---|---|
77 | |
77 | |
36 | |
30 | |
28 |
User | Count |
---|---|
106 | |
96 | |
55 | |
49 | |
46 |