Don't miss your chance to take the Fabric Data Engineer (DP-700) exam on us!
Learn moreNext up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now
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.
The date data type that I have is in this format.
Here is the x variables that I use to construct the line graph.
However, the output of the line graph only showing Year.
====================================================
If I remove the date hierachy and left only Month
It shows all the month without seperate into Yeat.
===============================================
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?
Solved! Go to 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).
Date data type is in the Axis.
Hi @alvin199 ,
Here is the data I created:
I can display it normally
You can try the following:
1. Change type format of X-Axis, from "Categorical" to "Continuous"
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.
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.
Try clicking the expand down to next level button to get month in your first attempt.
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).
Date data type is in the Axis.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 50 | |
| 44 | |
| 42 | |
| 18 | |
| 18 |
| User | Count |
|---|---|
| 69 | |
| 68 | |
| 32 | |
| 32 | |
| 32 |