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

The ultimate Microsoft Fabric, Power BI, Azure AI & SQL learning event! Join us in Las Vegas from March 26-28, 2024. Use code MSCUST for a $100 discount. 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
Fabric Community Conference

Microsoft Fabric Community Conference

Join us at our first-ever Microsoft Fabric Community Conference, March 26-28, 2024 in Las Vegas with 100+ sessions by community experts and Microsoft engineering.

February 2024 Update Carousel

Power BI Monthly Update - February 2024

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

Fabric Career Hub

Microsoft Fabric Career Hub

Explore career paths and learn resources in Fabric.

Fabric Partner Community

Microsoft Fabric Partner Community

Engage with the Fabric engineering team, hear of product updates, business opportunities, and resources in the Fabric Partner Community.

Top Solution Authors