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

Announcements
Write Table now available in Qlik Cloud Analytics: Read Blog
cancel
Showing results for 
Search instead for 
Did you mean: 
jhona1737
Contributor III
Contributor III

Using Aggr Function

Hello All,

I am trying to get a porcentage by week as shows on the attachement, but I am getting the total porcentage for the month I think I can use Aggr function. This is the scrip I am using

sum({<[Stock transaction type]={'11'},Source country]={'CL'},[Item type]={'320'}>}[Catch weight])/

sum(TOTAL{<[Stock transaction type]={'11'},[Source country]={'CL'},[Item type]={'320'}>}[Catch weight])

Thank you All 

Labels (1)
1 Solution

Accepted Solutions
raman_rastogi
Partner - Creator III
Partner - Creator III

try this

sum({<[Stock transaction type]={'11'},Source country]={'CL'},[Item type]={'320'}>}[Catch weight])/

sum(TOTAL< Week>{<[Stock transaction type]={'11'},[Source country]={'CL'},[Item type]={'320'}>}[Catch weight])

View solution in original post

2 Replies
raman_rastogi
Partner - Creator III
Partner - Creator III

try this

sum({<[Stock transaction type]={'11'},Source country]={'CL'},[Item type]={'320'}>}[Catch weight])/

sum(TOTAL< Week>{<[Stock transaction type]={'11'},[Source country]={'CL'},[Item type]={'320'}>}[Catch weight])

jhona1737
Contributor III
Contributor III
Author

Perfect it works!! thank you!