Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

YTD set analysis with Day selection

Hi guys!

I have a question regarding YTD using set analysis. I have this expression:

sum ({$<Year = {$(=max(Year))}, Month = {"<=$(=max({<Year={$(=max(Year))}>} Month))"}>} Sales)

but I need to consider Day selection too. How can I do that?

Hope that you can help me with my problem.. Thanks in advance!

Lester

1 Solution

Accepted Solutions
martin59
Specialist II
Specialist II

Hi Lester,

You can try this :

sum({<Date={">=$(=date(YearStart(Max(Date)))) <=$(=Max(Date))"}, Year=, Month=, Day=>} Sales)


View solution in original post

2 Replies
martin59
Specialist II
Specialist II

Hi Lester,

You can try this :

sum({<Date={">=$(=date(YearStart(Max(Date)))) <=$(=Max(Date))"}, Year=, Month=, Day=>} Sales)


Not applicable
Author

Thanks Martin!

I can also use your set analysis to my MTD just by replacing YearStart to MonthStart, and this also gives me some idea on my other expressions!

tyvm!

Regards,

Lester