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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
eaphymaoweave
Contributor II
Contributor II

Set Analysis for Table Totals?

I have a table which contains multiple weeks of data. Is there a way I can have the totals show the inventory for just a single week of interest (the current week, the earliest week, something like that)?

The sample table below would have something like 3 weeks of data, but I only want the total to show 1 week's figures. Is this even possible?

 

StoreInventory
150
220
310
Total80
1 Reply
rubenmarin

Hi Eaphy, Dimensionality() returns the number of dimensions in the actual row, so you can use this to set a different expression:

If(Dimensionality()=0, Sum({<Week={$(=Max (Week))}>} Inventory) //Total Row; Set analysis is only an example

, Sum(Inventory)) // Other rows