Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
priya945
Creator
Creator

Pivot table - Challenge

Hi All, I have a Pivot table in QV as below when expanded 

 EastWest
Aug-19Sep-19Oct-19Aug-19Sep-19Oct-19
A132354
B4578911
C243455

 

When user collapse, Pivot table looks like below where dates are not showing and values are summing up. 

 EastWest
  
A612
B1628
C914

 

Requirement is When user collapse then the last date with values should be shown instead of blank date and sum up of all as below

 EastWest
Oct-19Oct-19
A24
B711
C35

 

Please advise if this can be achieved in pivot table

 

Thank You

Labels (1)
1 Solution

Accepted Solutions
sunny_talwar

You can get the latest month's value, but not sure how you would display the month itself

=If(SecondaryDimensionality() = 2, Sum(Value), FirstSortedValue(Aggr(Sum(Value), Field, Region, Date), -Aggr(Date, Field, Region, Date)))

Capture.png 

View solution in original post

2 Replies
sunny_talwar

You can get the latest month's value, but not sure how you would display the month itself

=If(SecondaryDimensionality() = 2, Sum(Value), FirstSortedValue(Aggr(Sum(Value), Field, Region, Date), -Aggr(Date, Field, Region, Date)))

Capture.png 

priya945
Creator
Creator
Author

Thanks Sunny.

Yes got the solution partially and the challenge would be date.

Anyways thanks once again.