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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

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
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

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