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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
AmiraBedh
Resident Rockstar
Resident Rockstar

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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