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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
AmiraBedh
Super User
Super User

Line chart Y-Axis is duplicating values

I have this following measure :

 

Marge =
CALCULATE(DIVIDE (
SUM( FCTVentes[prix_vente] ),
SUM( FCTVentes[prix_achat]),0),
USERELATIONSHIP(dim_calendrier[id],FCTVentes[fk_date_vente]))

 

The result is a percentage formatted like below :

capalt_2-1653221604200.png

 

When I try to create to LineChart with a year filter like below :

capalt_0-1653221038825.png

I see that the Y-axis is duplicating values when the 2020 year is selected.

When selecting the year 2021 also, it is the same :

 

capalt_1-1653221154163.png

Also, I want that the Y-axis starts from 0 (the display), even if there is no data with 0%.


Proud to be a Power BI Super User !

Microsoft Community : https://docs.microsoft.com/en-us/users/AmiraBedhiafi
Linkedin : https://www.linkedin.com/in/amira-bedhiafi/
StackOverflow : https://stackoverflow.com/users/9517769/amira-bedhiafi
C-Sharp Corner : https://www.c-sharpcorner.com/members/amira-bedhiafi
Power BI Community :https://community.powerbi.com/t5/user/viewprofilepage/user-id/332696
1 ACCEPTED SOLUTION
amirabedhiafi
Impactful Individual
Impactful Individual

Hello,

I tried to reproduce your work like below :

 

amirabedhiafi_0-1653223288973.png

 

amirabedhiafi_1-1653223288976.png

 

 

amirabedhiafi_2-1653223288982.png

 

Amira Bedhiafi
Full Stack Business Intelligence Consultant @Capgemini

View solution in original post

2 REPLIES 2
amirabedhiafi
Impactful Individual
Impactful Individual

Hello,

I tried to reproduce your work like below :

 

amirabedhiafi_0-1653223288973.png

 

amirabedhiafi_1-1653223288976.png

 

 

amirabedhiafi_2-1653223288982.png

 

Amira Bedhiafi
Full Stack Business Intelligence Consultant @Capgemini

Whats happening there is since the range is small and the values are low it is showing the round off values. If we simply increase the decimals for the axis values it will be fixed.

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

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