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

Announcements
Qlik Connect 2026 Agenda Now Available: Explore Sessions
cancel
Showing results for 
Search instead for 
Did you mean: 
narender123
Specialist
Specialist

1st Day Problem

Hi Team,

=Sum({<Year={$(=Max(Year))},Month={$(=MaxString(Month))},Day={$(=Day(Today()-1))}>}amount)

its working for all date but when day=1 of August

then it will give 0

As per the logic it should return 31 july amount but its showing 0.

Please give me some idea.

Thanks in Advance.

Narender

2 Replies
tresesco
MVP
MVP

i guess, it's because your previous date is falling in another month and you have taken the max month in the set. I suggest, use date field rather than day.

Not applicable

Why not use

=Sum({<Year={$(=Year(Today() - 1))},Month={$(=Month(Today() - 1))},Day={$(=Day(Today()-1))}>} amount)

?

But as tres says its best to use Date field instead.