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

Announcements
Qlik Connect 2026! Turn data into bold moves, April 13 -15: Learn More!
cancel
Showing results for 
Search instead for 
Did you mean: 
SteffanieJ
Contributor
Contributor

Sum using Date and Category filters

Hello! 
I am new to Qlik and I am struggling to find the correct formula to use in my measure.  I need to get the Sum of Pounds by Date and Category. I am using a pivot table and filtering by the date.

Here is the formula I currently has but it is returning data that isn't accurate.

sum(aggr(max([Daily ZINV2.Download Date],[Material-Material]),[Daily ZINV2.Pounds in Inventory]))

SteffanieJ_0-1751297137998.png

What is the best formula for this?

 

Labels (1)
1 Solution

Accepted Solutions
Chanty4u
MVP
MVP

Try this

 

Sum([Daily ZINV2.Pounds in Inventory])

And use your pivot table dimensions like:

Daily ZINV2.Download Date (as row or column)

Material-Material or Category as dimension

 

Or

If you want aggregate use this 

Sum(

  Aggr(

    Sum([Daily ZINV2.Pounds in Inventory]),

    [Daily ZINV2.Download Date],

    [Material-Material]

 

  )

)

 

View solution in original post

1 Reply
Chanty4u
MVP
MVP

Try this

 

Sum([Daily ZINV2.Pounds in Inventory])

And use your pivot table dimensions like:

Daily ZINV2.Download Date (as row or column)

Material-Material or Category as dimension

 

Or

If you want aggregate use this 

Sum(

  Aggr(

    Sum([Daily ZINV2.Pounds in Inventory]),

    [Daily ZINV2.Download Date],

    [Material-Material]

 

  )

)