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

Announcements
Posting on Qlik Community is temporarily paused. Thank you for patience and we'll update you soon!
cancel
Showing results for 
Search instead for 
Did you mean: 
alis2063
Creator III
Creator III

Max Quarter Spend

I am trying to calculate the Max Quarter Amount  based on below  calculation but it is throwing  Error,

NUM(sum({$<NCRQuarter={$(vMaxQuarter)}>} Actual_Amount), '###')


Where

vMaxQuarter='Q'&Max(ceil(month(NCRIdentificationDate)/3))

&

NCRQuarter='Q'&CEIL( MONTH(NCRIdentificationDate) / 3)


Please help.


Labels (1)
1 Solution

Accepted Solutions
sunny_talwar
MVP
MVP

Try with double quotes

NUM(sum({$<NCRQuarter={"$(=vMaxQuarter)"}>} Actual_Amount), '###')

View solution in original post

4 Replies
sunny_talwar
MVP
MVP

May be try this

NUM(sum({$<NCRQuarter={'$(=vMaxQuarter)'}>} Actual_Amount), '###')

alis2063
Creator III
Creator III
Author

Hi Sunny,

Thanks for reply.

But it is still showing error as 'error in set modifier ad hoc element list'

sunny_talwar
MVP
MVP

Try with double quotes

NUM(sum({$<NCRQuarter={"$(=vMaxQuarter)"}>} Actual_Amount), '###')

alis2063
Creator III
Creator III
Author

THANKS for help dear..