Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hi
I have text values in one column (Funding col), like $2.5M and $4.5B. I want to convert this column into a numerical one like 2,500,000 and 4,500,000,000 for the whole column. so I can calculate further
Please provide solution
Solved! Go to Solution.
Hello Pal, I'm sorry still its not working.
you can use the following macro
Yes, I have tried that. Now I am able to calculate. Whereas I am having doubt that will it works fine if more data will be added in the same format like 10M or 2B to the dataset in future.
Hi @Madhan_ ,
try this code in Power Query
#"Replaced Value" = Table.ReplaceValue(Funding_Table,"M","000000",Replacer.ReplaceText,{"Funding"}),
#"Replaced Value1" = Table.ReplaceValue(#"Replaced Value","B","000000000",Replacer.ReplaceText,{"Funding"}),
#"Changed Type" = Table.TransformColumnTypes(#"Replaced Value1",{{"Funding", type number}})
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
110 | |
95 | |
76 | |
65 | |
51 |
User | Count |
---|---|
146 | |
109 | |
106 | |
88 | |
61 |