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

The Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.

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

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

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
Feb2025 Sticker Challenge

Join our Community Sticker Challenge 2025

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

Jan NL Carousel

Fabric Community Update - January 2025

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