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

Get certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register now

Reply
alvin199
Helper III
Helper III

Line chart unable to show month and year

Hi, I would like to plot a line graph that can show by year and month on the x-axis just like the picture below. 

 

alvin199_0-1642349462680.png

 

The date data type that I have is in this format.

alvin199_1-1642349519402.png

 

Here is the x variables that I use to construct the line graph. 

alvin199_2-1642349619066.png

 

However, the output of the line graph only showing Year.

alvin199_5-1642349840568.png

 

====================================================

If I remove the date hierachy and left only Month

alvin199_3-1642349724669.png

 

It shows all the month without seperate into Yeat.

alvin199_4-1642349794330.png

===============================================

My 2 questions are:

1. How to display the line graph by Month and Year.

2. I measure unable to use for line graph? Why?

1 ACCEPTED SOLUTION

The trick is select no date hierachy then the month and year will display.

 

However, I have another problem. I woul like to use the forecasting function in the option tab but I cannot find it and all other function such as trend line, max line, min line and etc are all disble (grey out).

alvin199_0-1642386336257.png

 

Date data type is in the Axis.

alvin199_1-1642386367879.png

 

 

 

View solution in original post

3 REPLIES 3
v-yangliu-msft
Community Support
Community Support

Hi  @alvin199 ,

Here is the data I created:

vyangliumsft_0-1642571206777.png

I can display it normally

vyangliumsft_1-1642571206782.png

You can try the following:

1. Change type format of X-Axis, from "Categorical" to "Continuous"

vyangliumsft_2-1642571206784.png

2. Whether the dates on the X-axis are normal dates, because in Power BI, the forecasting feature utilizes built-in predictive forecasting models to automatically detect the step (monthly/weekly/annually) and seasonality in your data to provide forecasting results .If it cannot be correctly identified, it will not render

3. There are some restrictions in the official documentation for the Percentile line.

https://docs.microsoft.com/en-us/power-bi/transform-model/desktop-analytics-pane#considerations-and-...

vyangliumsft_3-1642571206785.png

 

Best Regards,

Liu Yang

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

Syndicate_Admin
Administrator
Administrator

Try clicking the expand down to next level button to get month in your first attempt.

AlexisOlson_0-1642358690593.png

The trick is select no date hierachy then the month and year will display.

 

However, I have another problem. I woul like to use the forecasting function in the option tab but I cannot find it and all other function such as trend line, max line, min line and etc are all disble (grey out).

alvin199_0-1642386336257.png

 

Date data type is in the Axis.

alvin199_1-1642386367879.png

 

 

 

Helpful resources

Announcements
November Carousel

Fabric Community Update - November 2024

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

Live Sessions with Fabric DB

Be one of the first to start using Fabric Databases

Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.

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! Early Bird pricing ends December 9th.

Nov PBI Update Carousel

Power BI Monthly Update - November 2024

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