Forum Discussion
Trend line when x-axis is text field
- 9 years ago
It doesnt appear that you can because power bi doesnt know how to order them chronologically. I'd make another column which creates a date from that column
NewDate = DATE(LEFT([Date],4), RIGHT([Date],2), 1) or similar which will give you a date which is the first day of each month.
It doesnt appear that you can because power bi doesnt know how to order them chronologically. I'd make another column which creates a date from that column
NewDate = DATE(LEFT([Date],4), RIGHT([Date],2), 1) or similar which will give you a date which is the first day of each month.
- earlenereid9 years agoFrequent Visitor
I was able to create a date column to be used as my x-axis column. With a few additional adjustments, I can now add a trend line:
- Change x-axis type from Categorical to Continuous
- Change from Stacked Column chart to Clustered Column
There is a remaining issue:
My x-axis is only showing labels on every other month. How do I control that?