Forum Discussion

Rana's avatar
Rana
Regular Visitor
10 years ago

Power Bi Table number formatting

I am creating a simple Table in Power BI and trying to get rid of decmials but cant seem to find an option fo number formating anywhere, i can Edit Query and change the format but it rounds off numbers incorrectly and even after that Table visual will not remove 2 decimal places. I dont think Microsoft can oversee this very very basic feature.

 

Also how do i sort a table in the table (1st column in the screen shot).

Power BI screen shot.JPG

12 Replies

  • Greg_Deckler's avatar
    Greg_Deckler
    Community Champion

    In Data view, choose your table, choose your column and on the Modeling tab where it says "Auto", (Formatting section) edit this to be 0.

     

    In report, select table, click on the column you want to sort, if it is sorted the wrong way, click again. You can also set a "Sort By" column if you need a special type of sorting.

    • smittystx's avatar
      smittystx
      Regular Visitor

      Found this solution while trying to figure out the decimal places.  One thing I'm perplexed about though.  I am wondering how this can be done on a column that you are showing as a percent of the total such as below.  How do I adjust this to a single decimal place?  

        

      Total% Total
      90.86%
      30.29%
      40.38%
      60.58%
      90.86%
      111.06%
      60.58%
      20.19%
      121.15%
      141.34%
    • vshruti06's avatar
      vshruti06
      Advocate IV

      Hello Greg_Deckler

       

      I have updated my model and set the decimal to 0. After doing that my model is getting currepted.

       

      Is there any way to overcome this?

       

      Thanks in Advance

      Shruti Vyas

       

    • Rana's avatar
      Rana
      Regular Visitor

      thanks for the reply, sorting worked out fine.

       

      Table is still not formating properly, screen shots below:

      1st screen shot is the table and 2nd screen shot is formatted column from the data tab.

      data format.JPGdata format.JPG

      • Rana's avatar
        Rana
        Regular Visitor

        formatting worked too, i had to drop and include the Measure again on the table,
        thanks for your help