Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
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.