Qlik Community

New to Qlik Sense

Discussion board where members can get started with Qlik Sense.

Announcements
QlikWorld, June 24-25, 2020. Free virtual event for DI and DA gurus. Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Creator
Creator

Problem with sum

Hi,

I would like to have the sum that shows only values for the YearMonth that has maximum value. This YearMonth is generated by mastercalendar. I don't know what is wrong, but id doesn't work. if I take Max(YearMonth) separately it shows proper value i.e. 201609, but if it is in the formula shown below - it doesn't work.

sum(${<YearMonth=${Max(YearMonth)}>}Amount)

Maciek

Tags (1)
1 Solution

Accepted Solutions
Highlighted
Creator III
Creator III

Re: Problem with sum

Try With this,

Your expression should be like this,

Sum({<YearMonth={"$(=Max(YearMonth))"}>}Amount)

View solution in original post

3 Replies
Highlighted
Creator III
Creator III

Re: Problem with sum

Hi,

   you have written wrong expr try this, 

   

    sum({<YearMonth={$(=max(YearMonth))}>}Amount)

Regards,

Highlighted
Creator III
Creator III

Re: Problem with sum

Try With this,

Your expression should be like this,

Sum({<YearMonth={"$(=Max(YearMonth))"}>}Amount)

View solution in original post

Highlighted
Creator
Creator

Re: Problem with sum

Both works fine thanks silambarasan1306‌ and pathiqvd‌.