cancel
Showing results for 
Search instead for 
Did you mean: 

Fabric is Generally Available. Browse Fabric Presentations. Work towards your Fabric certification with the Cloud Skills Challenge.

Reply
VinhTon
Helper I
Helper I

How to get trend lines in a date hiearchy?

Edit--because trend lines are only offered with continuous x-axis and continuous are only offered with date fields, how do I get a trend line with a date hiearchy? For example how do I show trend line for year month. See the following image where I no longer have the trend line option when I go from Date to Year Month

trendLine_dateHiearchy.jpg


The trend line option is not showing under the add more analytics option in the Visualization pane.

I'm using dates from a Date table.

I tried following this tutorial https://www.youtube.com/watch?v=u-nEn8aolQ8

In the clustered column chart, there is no option to change from categorical to continuous in the format's x-axis. see image below.

In the line chart, there is the continuous option but it stays as categorical when I click on it. see image further below

trendLine_bar.jpg

trendLine_line.jpg

 

8 REPLIES 8
LarsKildemark
New Member

Hi winhTon,

I am expriencing the same problem. I have fond that if Power BI generates the date hierarchy automatically the trendline is available when you go throught the different levels.

However when I create a date table and use that then I am no longer able to get the trendline for anything but years. I don't know how the automatically generated hierarchy defines its levels and the data types in order to keep them all "continuous".


I have tried to have quarter and months be "date" by definingen them as for example end of quarter or end of month, but it does not work.


Here are som examples from an automatic hierarchy when I can see the trend line on all levels of the hierarchy (year, quarter, month):

LarsKildemark_0-1664786029537.pngLarsKildemark_1-1664786046216.pngLarsKildemark_2-1664786055980.png

 

parry2k
Super User
Super User

@VinhTon what have you tried based on the provided solution.

 

 

Follow us on LinkedIn and YouTube.gif to our YouTube channel

I would  Kudos if my solution helped. 👉 If you can spend time posting the question, you can also make effort to give Kudos to whoever helped to solve your problem. It is a token of appreciation!

 

Visit us at https://perytus.com, your one-stop shop for Power BI-related projects/training/consultancy.

 



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

parry2k
Super User
Super User

@VinhTon check this video on my YT channel and see if it helps. X-Axis Type, Data Type and Visual Scroll Bar - Power BI - YouTube

 



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

parry2k
Super User
Super User

@VinhTon Continuous option is only available when you have a number or date column on the x-axis.

 

 

Follow us on LinkedIn and YouTube.gif to our YouTube channel

I would  Kudos if my solution helped. 👉 If you can spend time posting the question, you can also make effort to give Kudos to whoever helped to solve your problem. It is a token of appreciation!

 

Visit us at https://perytus.com, your one-stop shop for Power BI-related projects/training/consultancy.

 



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

Thanks this helps identify the problem but I still am not able to get a trend line with a year month format. I tried creating a date hiearchy and updated the post to reflect that. Would you know?

Hi, @VinhTon 

If your problem has been solved, please accept a reply as solution to close this thread, so that other community members will easily find the solution when they get the same issue.

 

Best Regards,
Community Support Team _ Eason

it has not been solved

fhill
Resident Rockstar
Resident Rockstar

....  Thoughts on creating a messure, that is your own math to create your own 'trend line' then add as a secondary 'values'?




Did I answer your question, or help you along the way?
Please give Kudos or Mark as a Solution!


https://www.linkedin.com/in/forrest-hill-04480730/

Proud to give back to the community!
Thank You!




Helpful resources

Announcements
PBI November 2023 Update Carousel

Power BI Monthly Update - November 2023

Check out the November 2023 Power BI update to learn about new features.

Community News

Fabric Community News unified experience

Read the latest Fabric Community announcements, including updates on Power BI, Synapse, Data Factory and Data Activator.

Dashboard in a day with date

Exclusive opportunity for Women!

Join us for a free, hands-on Microsoft workshop led by women trainers for women where you will learn how to build a Dashboard in a Day!

Power BI Fabric Summit Carousel

The largest Power BI and Fabric virtual conference

130+ sessions, 130+ speakers, Product managers, MVPs, and experts. All about Power BI and Fabric. Attend online or watch the recordings.

Top Solution Authors
Top Kudoed Authors