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

Announcements
Q&A with Qlik - Qlik Cloud Migration: Questions about migrating to Qlik Cloud? Catch the latest replay!
cancel
Showing results for 
Search instead for 
Did you mean: 
markusblaut
Contributor III
Contributor III

Sum formula Pivot table

Hello guys,

can someone help me?

  • I have a pivot table with dimension "Product"
  • in the column I want to see the Quantity, but only from the highest selected year. (so if i select in a filter FY 2016,2017 and 2018) I only want to see the sum of the Quantity of 2018, and if I would select FY 2016 and 2017 I only want to see se sum of the Quantity of 2017, and so on...

if i insert "sum(Quantity)" i get always the sum of all selected FYs. Any idea how that could work?

Many thanks for any help!

Best Markus

Unbenannt.PNG

1 Solution

Accepted Solutions
sunny_talwar
MVP
MVP

I think you mean this

Sum({<year = {"$(=max(year))"}>} Quantity)

Sum({<FY = {"$(=max(FY))"}>} Quantity)

View solution in original post

6 Replies
agigliotti
MVP
MVP

maybe this:

sum( {< year = {"=max(year)"} >} Quantity )

I hope it helps.

The Power of shining a light on the dark side of your data.
Follow me on my LinkedIn | Know Gamma Informatica at gammainformatica.it
markusblaut
Contributor III
Contributor III
Author

thanks for your reply Andrea! Unfortunately your suggested formular gives the same results as sum(Quantity)

agigliotti
MVP
MVP

did you try with this below ?

sum( {< FY = {"=max(FY)"} >} Quantity )


FY field should be an external filter and not a pivot dimension.

The Power of shining a light on the dark side of your data.
Follow me on my LinkedIn | Know Gamma Informatica at gammainformatica.it
markusblaut
Contributor III
Contributor III
Author

yes i changed year to FY

sunny_talwar
MVP
MVP

I think you mean this

Sum({<year = {"$(=max(year))"}>} Quantity)

Sum({<FY = {"$(=max(FY))"}>} Quantity)

markusblaut
Contributor III
Contributor III
Author

Thank you Sunny and Andrea!!