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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric 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
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel1

Power BI Monthly Update - May 2024

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