Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us to spark ideas for how to put the latest capabilities into action. Register here!
cancel
Showing results for 
Search instead for 
Did you mean: 
niladridas
Contributor
Contributor

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,

1 Reply
lironbaram
Partner - Master III
Partner - Master III

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