Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more
Hi, i have a column which is include celebrities' instagram followers count. But this column includes values as text data type. Furthermore, if an celebrity do not have any instagram account followers count is shown as "-". How can i convert "-" to 0 (zero). Then how can i convert text data type to integer?
Thank you.
Solved! Go to Solution.
Hi @Anonymous
you can create a another column with below code:-
Column = IF('Table (4)'[Column1] = "-",0,INT('Table (4)'[Column1]))
Or in case you dont want to create a new column then in transform data tab you can right click on your column and select replace value
and replace "-" with 0
click ok, Now on the top from the transform ribbon change data type to whole number:-
Thanks,
Samarth
Best Regards,
Samarth
If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos!!
Connect on Linkedin
Hi @Anonymous
you can create a another column with below code:-
Column = IF('Table (4)'[Column1] = "-",0,INT('Table (4)'[Column1]))
Or in case you dont want to create a new column then in transform data tab you can right click on your column and select replace value
and replace "-" with 0
click ok, Now on the top from the transform ribbon change data type to whole number:-
Thanks,
Samarth
Best Regards,
Samarth
If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos!!
Connect on Linkedin
Thank you, i solved my problem thanks to your suggestion.
Great! it helps you. Kindly accept my answer as solution so that it will help other to find it more quickly.
Best Regards,
Samarth
If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos!!
Connect on Linkedin
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.