cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
BartEdgerton Regular Visitor
Regular Visitor

Average of whole number showing decimals

When I display a whole number column as an average, I end up with decimal places.   I was able to change the format to "General" and got a whole number average, but when published, that reverted back to 2 decimal places in both desktop and online.   It seems like it is working inconsistently.

How do I remove the decimal places from the average calculation consistently for both online and desktop?

7 REPLIES 7
Super User
Super User

Re: Average of whole number showing decimals

Can you try to change decmial places to zero and then test it.




Did I answer your question? Mark my post as a solution!

Proud to be a Datanaut! Connect with me on Linkedin






BartEdgerton Regular Visitor
Regular Visitor

Re: Average of whole number showing decimals

I don't have the option.  If I set it to "General" or "Whole Number" then the decimal is not editable and is "auto".  If I change to decimal and set it to zero decimals, then there is still no change.

Moderator v-yuezhe-msft
Moderator

Re: Average of whole number showing decimals

@BartEdgerton,

Set the data type and Format of your column to Decimal Number, and set the value of Decimal places to 0, then publish your PBIX file. There is an example for your reference.

2.JPG1.JPG3.JPG

If you still get issues, you can create a measure or column to calculate the average value. Please share dummy data of your table so that we can provide your appropriate DAX.

Regards,
Lydia

Community Support Team _ Lydia Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
BartEdgerton Regular Visitor
Regular Visitor

Re: Average of whole number showing decimals

Again, I have tried this multiple times, and it sometimes works, and sometimes doesn't, but it does not stay.   It will work for a while, but at some point, it reverts back to showing decimal places.  For some reason, it does not work consistently.

Moderator v-yuezhe-msft
Moderator

Re: Average of whole number showing decimals

@BartEdgerton,

Do you create a measure or column to calculate the average? And do you use February update of Power BI Desktop?

Regards,
Lydia

Community Support Team _ Lydia Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
mat_k Frequent Visitor
Frequent Visitor

Re: Average of whole number showing decimals

Hi, I have the same issue, value field is formated to whole number OR to decimal with 0 decimal places. When value is used as SUM in a table, it is ok, but for Average it will always show decimal places. I can make it to show one decimal place, but setting it to 0 gives two decimal places in table.

I have the latest PowerBI version (march 2019 update).

SidKal Occasional Visitor
Occasional Visitor

Re: Average of whole number showing decimals

Same Issue! Looks really bad as it does nto also just show 2 decimal points but a lot! For one it's more than 10 decimals. It would be great to have this fixed, as it looks very bad and is not usable for presentation.

Would you happen to have an update on this?

Thank you!