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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
mhmmd_srf
Creator II
Creator II

YTD Calculation

Hi All,

I have to show YTD Sale on the basis of selection.

If user Year = 2016 and Month = 5

YTD should show summation of Month = 1,2,3,4 and 5.

My expression is :

sum({<CstFiscalPeriod <= {'$(=$(vMaxMonth))'}, CstFiscalYear = {'$(=$(vMaxYear))'}>} UnitActual)

But it is throwing error.

Please help.

Thanks,
Sarif

Labels (1)
1 Solution

Accepted Solutions
sunny_talwar
MVP
MVP

May be try this:

Sum({<CstFiscalPeriod = {'<=$(=$(vMaxMonth))'}, CstFiscalYear = {'$(=$(vMaxYear))'}>} UnitActual)

View solution in original post

1 Reply
sunny_talwar
MVP
MVP

May be try this:

Sum({<CstFiscalPeriod = {'<=$(=$(vMaxMonth))'}, CstFiscalYear = {'$(=$(vMaxYear))'}>} UnitActual)