Skip to main content
Announcements
Have questions about Qlik Connect? Join us live on April 10th, at 11 AM ET: SIGN UP NOW
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

Please add me Anil_Babu_Samineni to interact faster when reply back. Speak low think High.

Before develop something, think If placed (The Right information | To the right people | At the Right time | In the Right place | With the Right context)
Kushal_Chawda

may be this

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

Kushal_Chawda

or

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