

Contributor
2018-11-14
02:07 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
How to plot a linear trendline
Hi,
I would like to see a linear trendline of my data plotted. How can I do that in Qlik sense?
Thanks,
564 Views
1 Reply


Partner - Master III
2018-11-14
02:48 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
hi
you can use an expression similiar to this one
LinEst_M(total aggr(sum(LineAmount),[OrderDate.autoCalendar.YearMonth]),[OrderDate.autoCalendar.YearMonth])*[OrderDate.autoCalendar.YearMonth]+
LinEst_b(total aggr(sum(LineAmount),[OrderDate.autoCalendar.YearMonth]),[OrderDate.autoCalendar.YearMonth])
where linest_M is giving you back the m value of the equation y=mx+b
and linest_b give you back the b
hi i can't upload the qvf file seems like a problem in the community
so you can download an example from here
555 Views
