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

Announcements
Join us in Bucharest on Sept 18th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Help to simplifying an expression in a pivote table

Hi Guys, I really need help to simplifiyng the expresion, is a calculated expresion, but there are too many nested if´s and this makes it limited, becouse if in the future I add a new row in the field it won´t be included.

I attached the app is just one expresion in a pivote table.

I appreciate your help guys!!

1 Solution

Accepted Solutions
Anonymous
Not applicable
Author

Hi

Hope this expression will be helpful for you

=

sum( aggr(

              IF(ACCOUNT_NAME = 'NOMINA_HRAS', sum({$<ACCOUNT_NAME = {'MINA_HRAS'}>}[Costo por hora]* [Hrs Reales]),SUM(Gastos))

,ACCOUNT_NAME,COCE_NAME))

+

sum({$<ACCOUNT_NAME = {"NOMINA_HRAS"}>}[Costo por hora]* [Hrs Reales])

Regards

View solution in original post

2 Replies
Anonymous
Not applicable
Author

Hi

Hope this expression will be helpful for you

=

sum( aggr(

              IF(ACCOUNT_NAME = 'NOMINA_HRAS', sum({$<ACCOUNT_NAME = {'MINA_HRAS'}>}[Costo por hora]* [Hrs Reales]),SUM(Gastos))

,ACCOUNT_NAME,COCE_NAME))

+

sum({$<ACCOUNT_NAME = {"NOMINA_HRAS"}>}[Costo por hora]* [Hrs Reales])

Regards

Not applicable
Author

Yes, It works excellent, Thank you chandashok, I really need it.

Have a good one, and thanks again!!