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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

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
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

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

MayPowerBICarousel

Power BI Monthly Update - May 2024

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

LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.