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

Translate an expression

Hello guys,

I have just started working with QlikView, and I created the following expression in order to sum the values of [Patrimônio Líquido]*1000/NumeroDeAções belonging to each quarter...

=if(aggr(NODISTINCT sum([Patrimônio Líquido]*1000/NumeroDeAções),Quarter)='0',
aggr(RangeSum(above(sum({<Month=, Date={'>=$(=MonthStart(Periodo, -1))<=$(=Date(Max(Periodo)))'}>} [Patrimônio Líquido]*1000/NumeroDeAções),0,100)),Periodo),
aggr(NODISTINCT sum([Patrimônio Líquido]*1000/NumeroDeAções), Quarter))

 

It's working, but to tell you the truth I have no idea of what I did. 
I don't even know how it's working.

Could you please translate the following formula so I can learn and understand what's going on?

Thanks
Bruno Lelli

1 Solution

Accepted Solutions
Brett_Bleess
Former Employee
Former Employee

Have a look at the following Design Blog posts:

https://community.qlik.com/t5/Qlik-Design-Blog/A-Primer-on-Set-Analysis/ba-p/1468344

https://community.qlik.com/t5/Qlik-Design-Blog/Set-Analysis-in-the-Aggr-function/ba-p/1463822

https://community.qlik.com/t5/Qlik-Design-Blog/Accumulative-Sums/ba-p/1468010

If you need others, please use the following link to search for further posts related to those items, and you can also review the Help too, as it is pretty detailed.

https://community.qlik.com/t5/Qlik-Design-Blog/bg-p/qlik-design-blog

https://help.qlik.com/en-US/qlikview/April2020/Subsystems/Client/Content/QV_QlikView/ChartFunctions/...

About the best I can offer.

Regards,
Brett

To help users find verified answers, please do not forget to use the "Accept as Solution" button on any post(s) that helped you resolve your problem or question.
I now work a compressed schedule, Tuesday, Wednesday and Thursday, so those will be the days I will reply to any follow-up posts.

View solution in original post

3 Replies
brunolelli87
Creator II
Creator II
Author

Any help guys???

Brett_Bleess
Former Employee
Former Employee

Have a look at the following Design Blog posts:

https://community.qlik.com/t5/Qlik-Design-Blog/A-Primer-on-Set-Analysis/ba-p/1468344

https://community.qlik.com/t5/Qlik-Design-Blog/Set-Analysis-in-the-Aggr-function/ba-p/1463822

https://community.qlik.com/t5/Qlik-Design-Blog/Accumulative-Sums/ba-p/1468010

If you need others, please use the following link to search for further posts related to those items, and you can also review the Help too, as it is pretty detailed.

https://community.qlik.com/t5/Qlik-Design-Blog/bg-p/qlik-design-blog

https://help.qlik.com/en-US/qlikview/April2020/Subsystems/Client/Content/QV_QlikView/ChartFunctions/...

About the best I can offer.

Regards,
Brett

To help users find verified answers, please do not forget to use the "Accept as Solution" button on any post(s) that helped you resolve your problem or question.
I now work a compressed schedule, Tuesday, Wednesday and Thursday, so those will be the days I will reply to any follow-up posts.
brunolelli87
Creator II
Creator II
Author

Thanks, Brett!