Skip to main content
Announcements
Have questions about Qlik Connect? Join us live on April 10th, at 11 AM ET: SIGN UP NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
gr_eldred
Creator II
Creator II

Total Function

I need help with this calculation in a Set analysis on a pivot table


Sum (curyear) / Sum (total <itemgroup> curyear)


My set analysis is this:


sum({$<Status-={'C'}, Clasificación ={'Accesorios de terceros', 'Accesorios de Terceros'}, [Año Apple]={$(V_Año_Actual)}>} Cantidad_I)

/

sum(TOTAL <[SemanaAppleEspecial]>  {$<Status={'C'}, Clasificación ={'Accesorios de terceros', 'Accesorios de Terceros'}, [Año Apple]={$(V_Año_Actual)}>} Cantidad_I)

What is in red is the data that is not giving me, what does this function of total have to do with a Pivot table since if it is working in a simple table?


Can Alguin help me ??


Please

Labels (2)
6 Replies
markovalexsey
Contributor III
Contributor III

May be

SUM( {<...>}   Cantidad_I    )  /  SUM( {<..>}   TOTAL <[SemanaAppleEspecial]>   Cantidad_I  )

sunny_talwar

Would you be able to elaborate... may be with an example as to what you exact issue is?

gr_eldred
Creator II
Creator II
Author

If my problem is that in this calculation I do not see values in a pivot table, if I separate the operation the problem lies in the denominator.

sum({$<Status-={'C'}, Clasificación ={'Accesorios de terceros', 'Accesorios de Terceros'}, [Año Apple]={$(V_Año_Actual)}>} Cantidad_I)

/

sum( {$<Status={'C'}, Clasificación ={'Accesorios de terceros', 'Accesorios de Terceros'}, [Año Apple]={$(V_Año_Actual)}>} TOTAL <[SemanaAppleEspecial]>  Cantidad_I)


tabla22.png



This calculation is being done on a pivot table, when I make this calculation in a simple table if it works.

gr_eldred
Creator II
Creator II
Author

it did not work

sum({$<Status-={'C'}, Clasificación ={'Accesorios de terceros', 'Accesorios de Terceros'}, [Año Apple]={$(V_Año_Actual)}>} Cantidad_I)

/

sum( {$<Status={'C'}, Clasificación ={'Accesorios de terceros', 'Accesorios de Terceros'}, [Año Apple]={$(V_Año_Actual)}>} TOTAL <[SemanaAppleEspecial]>  Cantidad_I)

gr_eldred
Creator II
Creator II
Author

I am already grateful for your help.

=(sum({$<Status-={'C'}, Clasificación ={'Accesorios de terceros', 'Accesorios de Terceros'}, [Año Apple]={$(V_Año_Actual)}>} Cantidad_I))

/

sum( TOTAL <[Serie]> {$<Status-={'C'}, Clasificación ={'Accesorios de terceros', 'Accesorios de Terceros'}, [Año Apple]={$(V_Año_Actual)}>} Cantidad_I)


regards

markovalexsey
Contributor III
Contributor III

Need an example of the structure and a piece of dummy data to verify