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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

Reply
NickzNickz
Helper IV
Helper IV

Line Chart Axis Range based on maximum value of the 3years

Hi... 

I have created a line chart. The line chart will display only the last 3 year data. For example,  2023, 2022, 2021, 2020, 2019, only 2022, 2021 and 2020 will be displayed. 

 

Below is the line chart I have created. 

NickzNickz_0-1692174502663.png

 

A have several questions.

 

Question 1: 

How can I ensure the line chart Y-axis range will dynamically change/follow based on the latest maximum value within the 3years data?.. If the values for 2023 are more than the previous years (2022 and 2021), I don't need to change the axis range manually.

 

Question 2:
How can I ensure the Y-axis value remains unchanged when I click the category slicer?

Currently, when I click the category, the Y-axis value change according to the selection.

Line Chart Error Example:

NickzNickz_1-1692175131705.png


Additional Input: 

This is the video I followed to create the chart: https://www.youtube.com/watch?v=8RzZppthNPk&t=323s 

 

 Regards,
NickzNickz

 

3 REPLIES 3
Jihwan_Kim
Super User
Super User

Hi, I am not sure how your datamodel looks like,  but I tried to create a sample pbix file like below.

Please check the below picture and the attached pbix file.

I hope the below can provide some ideas on how to create a solution for your datamodel.

 

Jihwan_Kim_1-1692178333680.png

 

Jihwan_Kim_2-1692178956633.png

 


If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Click here to visit my LinkedIn page

Click here to schedule a short Teams meeting to discuss your question.

Hi @Jihwan_Kim ,

 

Have you been able to download the pbix file I included before. ...

If you need any clarification, please do not hesitate to contact me ...

 

Regards,

NickzNickz

Hi @Jihwan_Kim 

Please find the attachment for your reference. If you are unable to access the file, please let me know ...

File: link 

 

Regards,

NickzNickz

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors