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
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
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