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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

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

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

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
PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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