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

Announcements
FLASH SALE: Save $500! Use code FLASH2026 at checkout until Feb 14th at 11:59PM ET. Register Now!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

YTD Set analysis

Hi

I've looked at various solutions regarding ytd set analysis but none of them seem to work for me. When the user select year  = 2011 and month = Aug (from available list boxes), the value should be the total value from Jan to end of Aug 2011.

I have used -

sum({$<Year = {$(=max(Year))}, month={"<=max(month))"}>}JrnAmt)

and

sum({$<Year = {$(only(Year))}, month={"<=max(month))"}>}JrnAmt)

and probably every other solution offered but what I'm getting is the same value as the actual for that specific month. So if actual for Aug =  67 000 then

my YTD total is also 67 000 instead of the sum of actuals for Jan - Aug 2011.

Please help.

Regards

4 Replies
Not applicable
Author

Hi,

Try to modify this: sum({$<Date={">=$(=yearstart(max(Date)))<=$(=monthend(max(Date)))"}, Year = , Month = , YearMonth = >} (JrnAmt))

@Ungvall

Senior Business Discovery Manager at Advectas AB

lironbaram
Partner - Master III
Partner - Master III

hei what is your dimension in the table

if your dimension is month set analysis wont work because when you put month in the dimension

it like cutting the data by the dimension

so for month august in the dimesion the set of data you are looking at is only the data of august

and set analysis wont help

can you post sample data

sbaldwin
Partner - Creator III
Partner - Creator III

Hi, Have you tried something like:

=sum({$<Year = {$(=max(Year))}, month={'<=$(=max(month))'}>} TOTAL value)

Thanks

Steve

Not applicable
Author

Hi

Thx for the answer - I get an error though

sum({$<Date={">=$(=yearstart(max(Date)))<=$(=monthend(max(Date)))"}, Year = , Month = , YearMonth = >} (JrnAmt)) - that is a red ~ underneath the comma after Year = ,

How can a poor novice like me solve this?

Regards