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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Reply
XiaozheZHANG
New Member

Only show month-day(quarterly) or year Quarter on X axis and show full range of Y axis in Power BI c

Hi everyone,

 

Hope you all are doing well. I have a question about X/Y axis in PBI Line chart.

 

1. about Y axis, I have a data range from 2% to 14%, y axis only shows 0% to 10% when I reduce the size of line chart, those data who higher than 10% are still in chart but y axis range could cover the data range. My desirable chart should be like this: y range from 0% to 15%.

 

2. About X axis. My dataset is weekly plus month-end day dataset from 2019, we need to show the entire dataset in line chart. PBI automatically shows year only, we would like to see quarterly dates on x axis in the format of "March-31" or "2019-Q1" on the vertical direction. I tried to adjust interval, but didn't make it.

 

can I have your help on these?

 

 

1 ACCEPTED SOLUTION
v-xuxinyi-msft
Community Support
Community Support

Hi @XiaozheZHANG 

 

Regarding your first question, I'm a bit confused, do you want the visualization to shrink and still show the original maximum value of the y-axis? As you can see in the image below.

vxuxinyimsft_1-1716442958723.png

 

vxuxinyimsft_2-1716442982563.png

Do you want the y-axis to always show 0.0065?

 

Regarding your second question, the following steps are for your reference.

 

1. Create a calculated column

 

endOfQuarter = EOMONTH(CALCULATE(ENDOFQUARTER(financials[Date])), 0)

 

 

2. Change the Type of the X-axis to Categorical.

vxuxinyimsft_5-1716443875848.png

 

Output:

vxuxinyimsft_4-1716443740128.png

If I have misunderstood you, please provide some sample data and expected results based on the sample data so that I can help you better. How to provide sample data in the Power BI Forum - Microsoft Fabric Community Or show it as a screenshot or pbix. Please remove any sensitive data in advance. If uploading pbix files please do not log into your account.

 

Best Regards,
Yulia Xu

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
v-xuxinyi-msft
Community Support
Community Support

Hi @XiaozheZHANG 

 

Regarding your first question, I'm a bit confused, do you want the visualization to shrink and still show the original maximum value of the y-axis? As you can see in the image below.

vxuxinyimsft_1-1716442958723.png

 

vxuxinyimsft_2-1716442982563.png

Do you want the y-axis to always show 0.0065?

 

Regarding your second question, the following steps are for your reference.

 

1. Create a calculated column

 

endOfQuarter = EOMONTH(CALCULATE(ENDOFQUARTER(financials[Date])), 0)

 

 

2. Change the Type of the X-axis to Categorical.

vxuxinyimsft_5-1716443875848.png

 

Output:

vxuxinyimsft_4-1716443740128.png

If I have misunderstood you, please provide some sample data and expected results based on the sample data so that I can help you better. How to provide sample data in the Power BI Forum - Microsoft Fabric Community Or show it as a screenshot or pbix. Please remove any sensitive data in advance. If uploading pbix files please do not log into your account.

 

Best Regards,
Yulia Xu

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

hi Thanks for your help. I am sorry that I didn't present it very clearly. our data is weekly data, I think I would like to change X-axis date interval only and date will match data accordingly on X-axis. so, line won't change, only change date. 

Helpful resources

Announcements
Fabcon_Europe_Social_Bogo

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.

Power BI Carousel June 2024

Power BI Monthly Update - June 2024

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

PBI_Carousel_NL_June

Fabric Community Update - June 2024

Get the latest Fabric updates from Build 2024, key Skills Challenge voucher deadlines, top blogs, forum posts, and product ideas.

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

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

Top Solution Authors