Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
suhasarchak
Partner - Contributor III
Partner - Contributor III

Max Month's Amount to be expression total in pivot table:QlikView

Hi,

I am trying to get the total of expression in a pivot table in QlikView based on the Month which is the dimension. Following is the example table:

  

MonthAmount
Apr-16456
May-165325
Jun-16535
Total535

Please help me how this can be achieved

Thanks,

Suhas Archak

6 Replies
Anil_Babu_Samineni

Sum({<Month = {=max(Month)}>} Amount)

Is Month looking Month(Date) & '-' & Left(Year(Date),2) as Month

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
sunny_talwar

May be like this:

Max(Aggr(Sum(Amount), Month))

rupamjyotidas
Specialist
Specialist

No Sure I understand your question, but I believe you can group the sum by month

Sum(Total <Month> Amount)

suhasarchak
Partner - Contributor III
Partner - Contributor III
Author

Hi,

Thanks for your replies. I tried all options but could not get the desired result. The expectation is to get the latest month's sum amount in the totals. In my example, I need to display 535 in totals as the sum of amount being for June which is the latest month.

Thanks

sunny_talwar

How about this?

=FirstSortedValue(Aggr(Sum(Amount), MonthYear), -MonthYear)


Capture.PNG

Not applicable

maybe this?

Captura35.JPG