Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

YTD

HI all how do i calculate YTD by months.

Current iam using the below formula which has monthNo in it .I want it to be by month .

=sum({$<Year={$(=Max(Year))},[MOnthNo]={"<=$(=(Max([MonthNo])"},Month=>}Sales)

This will give me ytd but every time i need to selsct monthno , I want  the ytd to be displayed when i selsct month list box .

2 Replies
Anonymous
Not applicable
Author

replace monthno --> Month field which is used for the display

arulsettu
Master III
Master III

hi

try like this

Sum({<Year=, Month=, Datefiled={">=$(=Num(YearStart(Max(Datefiled))))<=$(=Max(Datefiled))"}>} Sales)