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: 
bharatkishore
Creator III
Creator III

YTD

HI All,

I am calculating to get ytd logic but some how it is going wrong.

Can you please help me where i am doing wrong.

Attached app for reference.

Thanks,

Bharat

Labels (1)
2 Replies
YoussefBelloum
Champion
Champion

Hi,

are you trying to get the YTD value manually, I mean with the Yearmonth listbox ?

because I don't see a YTD expression in your table

Anonymous
Not applicable

I found this worked for me when I was trying to work out my year to date:

Let vCMonth = Num(Month(Today()));


TRACE *** vCMonth $(vCMonth);


if(Num(month([$(_field)]))<=$(vCMonth),1,0) as [$(_prefix)YearToDateFlag]


Then use the year to date flag in your set analysis