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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Employee
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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.