Forum Discussion
Igorfm7
Jan 22, 2024Copper Contributor
I want to change all this values
Rank | Name | Platform | Year | Genre | Publisher | NA_Sales | EU_Sales | JP_Sales | Other_Sales | Global_Sales |
1 | Wii Sports | Wii | 2006 | Sports | Nintendo | 41.49 | 29.02 | 3.77 | 8.46 | 82.74 |
2 | Super Mario Bros. | NES | 1985 | Platform | Nintendo | 29.08 | 3.58 | 6.81 | 0.77 | 40.24 |
3 | Mario Kart Wii | Wii | 2008 | Racing | Nintendo | 15.85 | 12.88 | 3.79 | 3.31 | 35.82 |
4 | Wii Sports Resort | Wii | 2009 | Sports | Nintendo | 15.75 | 11.01 | 3.28 | 2.96 | 33 |
5 | Pokemon Red/Pokemon Blue | GB | 1996 | Role-Playing | Nintendo | 11.27 | 8.89 | 10.22 | 1 | 31.37 |
6 | Tetris | GB | 1989 | Puzzle | Nintendo | 23.2 | 2.26 | 4.22 | 0.58 | 30.26 |
I want this values for example:
41.49 as 41.490
29.02 as 29.02
3.77 as 3.770
I have downloaded a csv from internet to use in my classes of Power BI and I need to change this values because I think the owner of the archive done that with just 2 decimals because he didn't wanted to use this as I want to.
Could anyone help me out with this?
- Riny_van_EekelenPlatinum Contributor
Igorfm7 I believe your system uses comma as the decimal separator. That's why most of the numbers are left aligned and you can't increase the number of decimals. They are seen as texts.
You mention Power BI. Then I suggest you use Power Query (also part of Power BI) to transform the texts that look like numbers to suite your locale.
When I copy the data from your post I get numbers directly as my system uses the point for decimals. See attached. When you open that file it should be automatically 'translated' into numbers for you also.
- Igorfm7Copper ContributorSo how do I do to change all the lines and collumns?
- Riny_van_EekelenPlatinum Contributor
Igorfm7 Well, if you don't know about or don't want to use Power Query despite the fact you work in Power BI, you can select (in Excel) all the 'number columns' and then Ctrl-H (Find & Replace) and replace decimal point with comma.
- JKPieterseSilver ContributorRight-click, format cells, Number category, set to 3 decimals?
- Igorfm7Copper ContributorNo, because the numbers are on text format.