Forum Discussion
Show all Dates on continuous X axis
- 9 years ago
Hi kirill_vaynberg,
When you drag the date column to Axis of a line chart, it will automatically enable date hierarchy. You can check the column name instead of the Date Hierarchy. The date value in the X-axis will display based on the visual width and number of records in this date column. We are not able to set interval for date in the X-axis, we can just specify the start date and end date.
To display all date values in x-axis, the best option is to set X-axis type as Categorical, it will generate a horizontal scroll bar for us to view all data if there are two many records.
Best Regards,
Qiuyun Yu
Hi kirill_vaynberg,
When you drag the date column to Axis of a line chart, it will automatically enable date hierarchy. You can check the column name instead of the Date Hierarchy. The date value in the X-axis will display based on the visual width and number of records in this date column. We are not able to set interval for date in the X-axis, we can just specify the start date and end date.
To display all date values in x-axis, the best option is to set X-axis type as Categorical, it will generate a horizontal scroll bar for us to view all data if there are two many records.
Best Regards,
Qiuyun Yu
- reymard8 years ago
Advocate I
Hi v-qiuyu-msft
If I use a Categorical for my X-axis, then I'm not able to display a trend line using the Analytics pane. Is there any other way to keep the Continuous type and to display all the months names ?
Thank you for your help.
- Anonymous8 years agoNot applicable
I had the exact same need today....I want to show a trend line but cannot if I use Categorical. Please allow us to show a monthly interval with a trendline.
- Gauß4528 years agoFrequent Visitor
Does anybody have a solution for this problem?
If I want to see a trend or the whole year in a chart (without scrolling), there are gaps between the weeks (weekend = gap).
- Anonymous5 years agoNot applicable
This is my exact requirements any solution?
- fat_cat1 year ago
Advocate IV
Changing x-axis to 'categorical' is only a workaround not a solution. Yes, it works in many scenrios, but it doesn't work if you want to display trend lines or x-constant line, because in such cases you must use a continuous axis. And Power BI still stubbornly refuses to display all labels on continuous x-axis even when there is all the space in the world available (simple example attached). It’s now 2025 - 8 years since this issue was first flagged...
- PierreL691 year ago
Helper IV
Yes it works but unfortunately if you use the categorical option you loose the X axis constant line 😞 Thanks
- kirill_vaynberg9 years agoNew Member
Hi v-qiuyu-msft
Thank you very much for the clarification. Are you able to share what criteria are uded to determine the number of labels shown? If I know the algorithm that uses visual width and number of records in this date column, I could try massaging my data and layout to match it in the future.
What pathways are there if i would like to propose setting interval for date in the X-axis as a future option?
- v-qiuyu-msft9 years ago
Community Support
Hi kirill_vaynberg,
I'm not sure which criteria are used to determine the number of labels shown, but cased on my test, we can drag to increase chart width to make more date values display in X-axis.
You can submit an idea in Ideas forum.
Best Regards,
Qiuyun Yu
- Anonymous7 years agoNot applicable
I have the same need except I need date & time to be considered as one value. For example the chart may extend from 8:00PM on 7/14/2019 until 8:00PM on 7/15/2019 and the tick marks will likely be every couple of hours. If the user selects a wider range, the tick marks may become days. The point being I need Power BI to treat date-time as one field. How is this done in Power BI? v-qiuyu-msft