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

Get inspired! Check out the entries from the Power BI DataViz World Championships preliminary rounds and give kudos to your favorites. View the vizzies.

Reply
KBD
Helper I
Helper I

on Line chart - show Year & Quarter

Hello: Folks Who Know What They Are Doing

 

I have a simple line chart and bar chart.  In the bar chart the X-axsis displays the Year & Quarter correctly.

I cannot get the line chart to show the same.  Both charts are based on the same data.  The same attributes.

 

On the line chart I have tried drill up and drill down but no luck.

 

Your kind assistance is requested.

 

Best Regards

 

KD

 

KBD_0-1731877559894.png

 

  

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

Hi,@KBD .I am glad to help you.
You need to make sure that the field type of the X-axis in your line chart is correctly set to Date Hierarchy, and that the related drill-down buttons are enabled.

vjtianmsft_0-1731901749671.png
Trying to change the type of data presentation for the X-axis field
There are two types: Continuous and Categorical.
You need to pay attention to the status of these settings (check which features of the visual settings need to be enabled and which do not) and choose the one that suits your needs.

vjtianmsft_1-1731901821211.png

A few things you need to check

1. make sure that the fields used for the X-axis are the same data type (for example, date type) in both charts.
2. Create a date hierarchy in Power BI, including year and quarter, and then apply it to the X-axis of the line chart. You can right-click the date field in the Fields pane, select New Hierarchy, and then add the year and quarter.
3. Formatting the X-axis: In the Format option of the line chart, check the X-axis settings to make sure it is formatted to show years and quarters. You can find the relevant settings in the “X-axis” option.
4. Please check the data model: Make sure that there are no filters or other settings in the data model that affect the display of the line chart.
You can copy a bar chart visual directly and change its visual type to line chart, so that the filter range is consistent.
5. Using a calendar table with complete dates is a better approach, you can create a calendar table, and establish the relevant relationships
You can create a calendar table and create related relationships. Creating columns with different granularity for dates can achieve similar results.

I hope the following issue can help you.

URL:
Solved: How do I organise data by Year and Quarter on a li... - Microsoft Fabric Community
Improving timeline charts in Power BI with DAX - SQLBI
 

vjtianmsft_2-1731901889082.png

vjtianmsft_5-1731901928096.png

 

I hope my suggestions give you good ideas, if you have any more questions, please clarify in a follow-up reply.
Best Regards,
Carson Jian,
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

1 REPLY 1
v-jtian-msft
Community Support
Community Support

Hi,@KBD .I am glad to help you.
You need to make sure that the field type of the X-axis in your line chart is correctly set to Date Hierarchy, and that the related drill-down buttons are enabled.

vjtianmsft_0-1731901749671.png
Trying to change the type of data presentation for the X-axis field
There are two types: Continuous and Categorical.
You need to pay attention to the status of these settings (check which features of the visual settings need to be enabled and which do not) and choose the one that suits your needs.

vjtianmsft_1-1731901821211.png

A few things you need to check

1. make sure that the fields used for the X-axis are the same data type (for example, date type) in both charts.
2. Create a date hierarchy in Power BI, including year and quarter, and then apply it to the X-axis of the line chart. You can right-click the date field in the Fields pane, select New Hierarchy, and then add the year and quarter.
3. Formatting the X-axis: In the Format option of the line chart, check the X-axis settings to make sure it is formatted to show years and quarters. You can find the relevant settings in the “X-axis” option.
4. Please check the data model: Make sure that there are no filters or other settings in the data model that affect the display of the line chart.
You can copy a bar chart visual directly and change its visual type to line chart, so that the filter range is consistent.
5. Using a calendar table with complete dates is a better approach, you can create a calendar table, and establish the relevant relationships
You can create a calendar table and create related relationships. Creating columns with different granularity for dates can achieve similar results.

I hope the following issue can help you.

URL:
Solved: How do I organise data by Year and Quarter on a li... - Microsoft Fabric Community
Improving timeline charts in Power BI with DAX - SQLBI
 

vjtianmsft_2-1731901889082.png

vjtianmsft_5-1731901928096.png

 

I hope my suggestions give you good ideas, if you have any more questions, please clarify in a follow-up reply.
Best Regards,
Carson Jian,
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

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 FABINSIDER for a $400 discount!

FebPBI_Carousel

Power BI Monthly Update - February 2025

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

March2025 Carousel

Fabric Community Update - March 2025

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

Top Solution Authors