Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Beiffon
Frequent Visitor

Whole numbers in average

HI,

 

I have an Attribute Slicer for an Average.

 

I only wan to show Whole Numbers

 avg.PNG

Any ideas on how to do this?

 

Thanks in advance,

1 ACCEPTED SOLUTION

Please select the table column in the field list so it has a yellow box surrounding the field.  This is just to select the field.

 

Then in the modelling tab on the ribbon, use the Formatting options to either convert the number to an Integer, or see if you can set the number of decimal places to 0.

 

 

image.png


To learn more about DAX visit : aka.ms/practicalDAX

Proud to be a Datanaut!

View solution in original post

6 REPLIES 6
Phil_Seamark
Microsoft Employee
Microsoft Employee

One way is to set the number of decimal places in the field formatting of the column to 0

 

image.png

 

Or if you are using a DAX calculated measure to generate the average, you can wrap your formula with an INT function


To learn more about DAX visit : aka.ms/practicalDAX

Proud to be a Datanaut!

Thanks, but the visual I am using does not have that option 😞

What sort of field are you using in your slicer?  A calculated measure, or are you dragging a table column to the visual?


To learn more about DAX visit : aka.ms/practicalDAX

Proud to be a Datanaut!

A table column

Please select the table column in the field list so it has a yellow box surrounding the field.  This is just to select the field.

 

Then in the modelling tab on the ribbon, use the Formatting options to either convert the number to an Integer, or see if you can set the number of decimal places to 0.

 

 

image.png


To learn more about DAX visit : aka.ms/practicalDAX

Proud to be a Datanaut!

awesome, thanks mate

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.