Skip to main content
Woohoo! Qlik Community has won “Best in Class Community” in the 2024 Khoros Kudos awards!
Announcements
Nov. 20th, Qlik Insider - Lakehouses: Driving the Future of Data & AI - PICK A SESSION
cancel
Showing results for 
Search instead for 
Did you mean: 
prma7799
Master III
Master III

Last year data not showing

Dear All,

I am able to see last year data.

PFA...

1 Solution

Accepted Solutions
sunny_talwar

How about this:

Sum({<Year=, MonthName=, Quarter=, FiscalYear =, FinancialYear, Flag = {'Values'}  , Date={"$(='>=' & Date(YearStart(Max(Date), -1, 4), 'MMM-YY') & '<=' & Date(AddYears(Max(Date), -1), 'MMM-YY'))"}>} Amount)/10000000

View solution in original post

10 Replies
sunny_talwar

May be this:

Sum({<Year=, MonthName=, Quarter=, Flag = {'Values'}  , Date={">=$(=Date(YearStart(Max(Date), -1), 'MMM-YY'))<=$(=Date(AddYears(Max(Date), -1), 'MMM-YY'))"}>} Amount)/10000000


Capture.PNG

prma7799
Master III
Master III
Author

Hi Sunny,

After selection there is not showing any data for LY

agomes1971
Specialist II
Specialist II

Hi,

expression for only the last year:

Sum({< Flag = {'Values'}, Year={"$(=max({1} Year))"} >} Amount)/10000000

HTH

André Gomes

sunny_talwar

Try this:

Sum({<Year=, MonthName=, Quarter=, FiscalYear =, FinancialYear =, Flag = {'Values'}  , Date={">=$(=Date(YearStart(Max(Date), -1), 'MMM-YY'))<=$(=Date(AddYears(Max(Date), -1), 'MMM-YY'))"}>} Amount)/10000000

prma7799
Master III
Master III
Author

Sunny data is not coming right ....

Please check....

if i check...

sunny_talwar

How about this:

Sum({<Year=, MonthName=, Quarter=, FiscalYear =, FinancialYear, Flag = {'Values'}  , Date={"$(='>=' & Date(YearStart(Max(Date), -1, 4), 'MMM-YY') & '<=' & Date(AddYears(Max(Date), -1), 'MMM-YY'))"}>} Amount)/10000000

agomes1971
Specialist II
Specialist II

Hi,

if you based on year selections

Hi,

expression for only the last year:

Sum({< Flag = {'Values'}, Year={"$(=max({$} Year))"} >} Amount)/10000000

HTH

André Gomes

Anonymous
Not applicable

have a look to that Expression:

=Sum({<FinancialYear=,FiscalYear=,Year=, MonthName=, Quarter=, Flag = {'Values'} ,Date={">=$(=date(addyears(Min(Date),-1),'MMM-YY'))<=$(=date(addyears(Max(Date),-1),'MMM-YY'))"}>} Amount)/10000000

prma7799
Master III
Master III
Author

Sunny this expression takes data only for few months ...

Can you please give me simply expression for YTD MTD  LYTD LMTD...