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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
OneWithQuestion
Post Prodigy
Post Prodigy

Line Chart: Trend Line at year but not month level?

I have a year and month hierarchy and when I view a line chart by year I can go to analytics pane and add a trend line.

 

Then when I do the expand all down one level in hierarchy button (the single line that splits into two like a two pronged fork) the trend line goes away and I can't bring it back under analytics.

 

Am I missing something basic here...what is going on?

 

Thanks!

3 REPLIES 3
v-sihou-msft
Employee
Employee

@OneWithQuestion

 

As I tested, the trend line only appear when the category field on X-axis is numeric.

 

Regards

I may not be following:

 

So then, NOT dates?

 

If I have Years: 2002, 2003, 2004, etc.... 2017

 

then drill down to months: 2017-01-01, 2017-02-01, etc... that won't work for Trends?

Power BI Line Chart with Trend line work only for a date as axis. If you use anything line mm/yyyy or not numeric, this function don't works.

Vithor Silva | http://blog.vssti.com.br

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.