Skip to main content
Announcements
See what Drew Clarke has to say about the Qlik Talend Cloud launch! READ THE BLOG
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Expression for sales KPI for current year to date(CYTD)

What should be the expression for sales KPI for current year to date(CYTD)?

The value should not change when the data is filtered on any date fields.

The fields in the table are SalesAmount, Year, Quarter, Month, and CYTDFlag. The CYTDFlag field is set to 1 for sales in the current year.

5 Replies
tresesco
MVP
MVP

May be something like:

Sum({<Month,Year,Date, AnyOtherDateField, CYTDFlag={1}>}Sales)

mdmukramali
Specialist III
Specialist III

Dear Deepti,

follow the below link:

YTQ, QTD, MTD and WTD

if you have any issue attach some sample data so that we can help you in better way.

Thanks,

Mukram.

Anil_Babu_Samineni

May be explain little more related data set? And little more related selection and needed

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
Kushal_Chawda

may be this

Sum({1<CYTDFlag={1}>}Sales)

Kushal_Chawda

or

Sum({<Month,Year,Quarter, CYTDFlag={1}>}Sales)