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
Anonymous
Not applicable

Incorrect Display of Integer in bar graph

Hi everyone,

I have been facing a issue with rounds values in x-axis, I expected them to be as integers without showing decimals, but when I convert this variable as whole number it doesn't show as  i would expect. For giving you an example:

This should show only  0 and 1 value but when I try those to show as interger with rounding them but I couldn't reach my need.

This is what I have in the bar graph

K_Caballero16_1-1604036449615.png

After rounding or even changing to Whole Number Type

 

K_Caballero16_0-1604036087124.png

But what I want to display there, it would be like the following:

0                                                               1

without any decimal between integers.

 

Thank you in advance if someone know a trick to do it.

 

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@Anonymous , Check the Axis type, if it continuous, make it categorical

Axis_type.png

View solution in original post

1 REPLY 1
amitchandak
Super User
Super User

@Anonymous , Check the Axis type, if it continuous, make it categorical

Axis_type.png

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.