Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Answer me about below questions

What are the expression s for last 3 FY YTDs

Expressions for Q2,Q3 for last 3 FY years

Expressions for MTD for current and last 3 months???

Data should be change Dynamically

My Fy year start from April of every year


3 Replies
albertovarela
Partner - Specialist
Partner - Specialist

You may want to take a look at these functions:

inyeartodate,

inquartertodate,

inmonthtodate

Anonymous
Not applicable
Author

Anil_Babu_Samineni

I am not sure, Your intention over here. Perhaps this? Hope this helps to you

1) What are the expressions for last 3 FY YTDs

Sum({<Year=, Month=, Quarter=, Week=, DateField={">=$(=Num(YearStart(Max(DateField))))<=$(=Max(DateField))"}, , FYYear = {'$(=AddYears(Max(FYYear ),-3))'}>} Sales)

2) Expressions for Q2,Q3 for last 3 FY years

Sum({<Quarter = {'Q2','Q3'}>}Sales)


3) Expressions for MTD for current and last 3 months???

Sum({<Year=, Month=, Quarter=, Week=, DateField={">=$(=Num(MonthStart(Max(DateField))))<=$(=Max(DateField))"}, FYMonth = {'$(=AddMonths(Max(FYYear ),-3))'}>} Sales)


4) Data should be change Dynamically

Default, Qlik can do if data associate with each together


5) My Fy year start from April of every year

Here, You have to enable the sort expression like =Mod(Month(FYDate)+8,12)

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