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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
brunolelli87
Creator II
Creator II

Linest_ function

Dears,

I've the following database which provides some historical prices per Ticker. Take a loot at it:

DVPGTICKVDAF
01/01/2019ITUB422,30
02/01/2019ITUB421,43
...........
31/12/2019ITUB420,63
01/01/2019CVCB310,33
02/01/2019CBCV322,10
...........
31/12/2019CVCB325,44
01/01/2019GGBR433,11
02/01/2019GGBR431,47
...........
31/12/2019GGBR432,23

 

And my question is:

How can I create an expression using Linest_B where X = VDAF when TICK is equal to ITUB4, and Y = VDAF when TICK = GGBR4?

 

Thank you guys,

Best regards 

1 Reply
chrismarlow
Specialist II
Specialist II

Hi,

Something like;

LinEst_B(aggr(Sum({<TICK={'GGBR4'}>}VDAF),DVPG),aggr(Sum({<TICK={'ITUB4'}>}VDAF),DVPG))

?

Cheers,

Chris.