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 simplify an expression in a pivote table

Hi Guys, I really need help to simplify an expression in a pivote table, there are too many nested if´s and this makes it limited, but I need to include all my rows of my field "ACCOUNT_NAME" ,

I attached the app for a better understand.

Thank you all Gyus for your time!!

1 Solution

Accepted Solutions
Anonymous
Not applicable
Author

Hi

     Hope this expression will be helpful for your problem

=

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])

I attached your qv file with the solution . Refer it the chart having caption answer.

Regards

Ashok

View solution in original post

2 Replies
Anonymous
Not applicable
Author

Hi

     Hope this expression will be helpful for your problem

=

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])

I attached your qv file with the solution . Refer it the chart having caption answer.

Regards

Ashok

Not applicable
Author

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

Have a good one, and thanks again!!