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

Announcements
Join us to spark ideas for how to put the latest capabilities into action. Register here!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

YTD - calculation

Hi,

I loaded budgetdata from a cross table but when I try to make the YTD the result is 0.

This is the set analysis I used: Sum({$<MONTH={"<=(=max(MONTH)"}>} BudgetAmount).

I used a similar formula in other Qlikview-documents and had no problems.

Any suggestions for solving this problem?

Thanks in advance.

1 Solution

Accepted Solutions
brenner_martina
Partner - Specialist II
Partner - Specialist II

Hi,

ok, than try to enter a variable, that's always better:

Variable: varMaxMonth   = Max(MONTH)

Sum({$<MONTH={"<=$(varMaxMonth)"}>} BudgetAmount)

View solution in original post

6 Replies
brenner_martina
Partner - Specialist II
Partner - Specialist II

Hi,

I thing there is missing one closing bracket

Sum({$<MONTH={"<=(=max(MONTH))"}>} BudgetAmount).

mike_garcia
Specialist
Specialist

A dollar sign is also missing

Sum({$<MONTH={"<=$(=max(MONTH))"}>} BudgetAmount)

Mike.

Miguel García
Qlik Expert, Author and Trainer
Not applicable
Author

Thanks for correcting my set analysis-formula but this still doesn't work.

brenner_martina
Partner - Specialist II
Partner - Specialist II

Hi,

ok, than try to enter a variable, that's always better:

Variable: varMaxMonth   = Max(MONTH)

Sum({$<MONTH={"<=$(varMaxMonth)"}>} BudgetAmount)

Not applicable
Author

Hi:

Month is a character variable. Try with MaxString instead of Max

Hope this helps.

-- NK

Not applicable
Author

Thank you!