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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
brunolelli87
Creator II
Creator II

Convert an expression into script

Dears,

How can I convert the following expressions into a script?

= LINEST_M(Aggr(avg( If(DVPG > '18/03/2020', VDAF) ), STCK, DVPG ), DVPG )
=LINEST_R2(Aggr(avg(DISTINCT If(DVPG > '18/03/2020', VDAF)), STCK, DVPG),DVPG)

 

The fields can be obtained from the following tables:

VDAF and STCK => Table Empresas
STCK and DVPG => Table Cotações

DVPG has the same content as the Field PERI, that can also be found at Table Empresas

 

How can I do that?
Thanks

Labels (1)
0 Replies