Skip to main content
Announcements
See why Qlik is a Leader in the 2024 Gartner® Magic Quadrant™ for Analytics & BI Platforms. Download Now
cancel
Showing results for 
Search instead for 
Did you mean: 
rtr13
Contributor III
Contributor III

YTD Calculation

Hi All,

I know there's a ton of questions in regards to YTD Calculations, but I have a scenario where I have a list of Budgets for the entire year (January- December) and I am currently trying to put together an expression that captures the YTD Budget through Aug 2019 that would be dynamic to the year. So, if a user chose 2018, it would then display the YTD Budget through the year until they selected a specific month, then it would display the budget YTD through the chosen month. 

I appreciate all of the help!

Best,

Rose

Labels (1)
1 Reply
devarasu07
Master II
Master II

Hi,

 

Try like this,

sum( {$<Year={"$(=Max(Year))"},Date={"<=$(=Date(Max(Date),'YYYY-MM-DD'))"}>}SoldQty)