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

Announcements
Join us in Bucharest on Sept 18th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

need help

I want to get last year saleQty and the this year saleQty by selecting a year and a month. Financial year begins from April. i m getting last year saleQty for a month like this.

Num((SUM({<year = {'$(=Max(year)-1)'}>}saleQty)),'#,##0')

but now i want to get saleQty for a period(April to this month) for last year and this year. pls help

27 Replies
jagan
Partner - Champion III
Partner - Champion III

Hi Dushan,

Then use this expressions

For Previous Year YTM:

SUM({<Date={'>=$(=YearStart(Today(), -1, 4))<=$(=AddMonths(Today(), -12))'}>}saleQty)

For Current Year YTM:

SUM({<Date={'>=$(=YearStart(Today(), 0, 4))<=$(=Today())'}>}saleQty)

Regards,

Jagan.

Not applicable
Author

Hi, Jagan i tried this before. but it s displaying month value only not the YTM. can u please send me the corrected copy

jagan
Partner - Champion III
Partner - Champion III

Hi,

Try like this

For Previous Year YTM:

SUM({<Date={'>=$(=YearStart(Max(Date), -1, 4))<=$(=AddMonths(Max(Date), -12))'}>}saleQty)

For Current Year YTM:

SUM({<Date={'>=$(=YearStart(Max(Date), 0, 4))<=$(=Max(Date))'}>}saleQty)

Regards,

Jagan.

Not applicable
Author

hi jagan, it s only displaying monthly saleQty

jagan
Partner - Champion III
Partner - Champion III

Hi,

Can you attach the file which you are working now and specify what is the some expected values for YTM and LYTM.

Regards,

jagan.

Not applicable
Author

Hi,

total YTM to 2014-1 is 24,476,166 nearly. your previous method is correct. but it should change when year and month is changing

Not applicable
Author

can someone correct the application copy which i previously attached and send me ? thanks

jagan
Partner - Champion III
Partner - Champion III

Hi,

Can you reattach the copy and let me know the values you expect when you select specific year and month.

Regards,

Jagan.