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
adhumal2
Helper III
Helper III

Line Chart showing spike due to decimal values

Capture8.PNGAll above values are basically 34.80 after rounding, However the line chart is showing spike due to minor deviation in the decimal values as you can see on the chart.

 

I am expecting a straight line as all values are basically 34.80....How can I do it?

2 ACCEPTED SOLUTIONS
AllisonKennedy
Super User
Super User

You can try a couple of things: 

Change the start and end values for y-axis for the line so that it's not so zoomed in https://docs.microsoft.com/en-us/power-bi/visuals/power-bi-visualization-customize-x-axis-and-y-axis

Format or change data type for the measure so that it displays as 38 instead of keeping so many decimal places: https://docs.microsoft.com/en-us/power-bi/connect-data/desktop-data-types

Use the ROUND option in Power Query to truncate the values (only works if this is a column build from data source)


Please @mention me in your reply if you want a response.

Copying DAX from this post? Click here for a hack to quickly replace it with your own table names

Has this post solved your problem? Please Accept as Solution so that others can find it quickly and to let the community know your problem has been solved.
If you found this post helpful, please give Kudos C

I work as a Microsoft trainer and consultant, specialising in Power BI and Power Query.
www.excelwithallison.com

View solution in original post

amitchandak
Super User
Super User

@adhumal2 , because of small range power BI using a very small range. Change the start value 0 (Y-Axis). Or control the decimals

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

View solution in original post

2 REPLIES 2
amitchandak
Super User
Super User

@adhumal2 , because of small range power BI using a very small range. Change the start value 0 (Y-Axis). Or control the decimals

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
AllisonKennedy
Super User
Super User

You can try a couple of things: 

Change the start and end values for y-axis for the line so that it's not so zoomed in https://docs.microsoft.com/en-us/power-bi/visuals/power-bi-visualization-customize-x-axis-and-y-axis

Format or change data type for the measure so that it displays as 38 instead of keeping so many decimal places: https://docs.microsoft.com/en-us/power-bi/connect-data/desktop-data-types

Use the ROUND option in Power Query to truncate the values (only works if this is a column build from data source)


Please @mention me in your reply if you want a response.

Copying DAX from this post? Click here for a hack to quickly replace it with your own table names

Has this post solved your problem? Please Accept as Solution so that others can find it quickly and to let the community know your problem has been solved.
If you found this post helpful, please give Kudos C

I work as a Microsoft trainer and consultant, specialising in Power BI and Power Query.
www.excelwithallison.com

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!

November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 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.