# New to Qlik Sense

Discussion board where members can get started with Qlik Sense.

Announcements
Qlik® Product Spotlight: Discover what’s possible. Get more from our products.
See for yourself. Register today.
Contributor

## 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
Contributor III

## Re: Problem with sum

Try With this,

Your expression should be like this,

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

3 Replies
Contributor III

## Re: Problem with sum

Hi,

you have written wrong expr try this,

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

Regards,

Contributor III

## Re: Problem with sum

Try With this,

Your expression should be like this,

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

Contributor

## Re: Problem with sum

Both works fine thanks silambarasan1306‌ and pathiqvd‌.

Community Browser