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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! 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
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

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.

Top Solution Authors