Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
prahlad_infy
Partner - Creator II
Partner - Creator II

Sum of Stock value of last five quarter . Help me please ?

Hello Sir ,

Helping me on dynamically finding Sum of Stock value of ONGOING quarter and last five quarter .

smething like below only

YEAR-QTR.png

THANK YOU

1 Solution

Accepted Solutions
shekhar_analyti
Specialist
Specialist

Invariable overview

vToday=Today()

vL15m=AddMonths(Max(Date(Today())),-15)

Chart Type : Pivot

Dimension : STOCK , Yearqtr

Expression :SUM({$<DATE={">=$(=Date(vL15m))<=$(=Date(vToday))"} >} money)

View solution in original post

6 Replies
prahlad_infy
Partner - Creator II
Partner - Creator II
Author

neelamsaroha1575‌ .. Help me please .

qlikviewwizard
Master II
Master II

Can you attach sample in text file

prahlad_infy
Partner - Creator II
Partner - Creator II
Author

Do you mean sample data in text file ?

I wanting a set expression which should show me data for current quarter and last 5 quarter .

shekhar_analyti
Specialist
Specialist

Invariable overview

vToday=Today()

vL15m=AddMonths(Max(Date(Today())),-15)

Chart Type : Pivot

Dimension : STOCK , Yearqtr

Expression :SUM({$<DATE={">=$(=Date(vL15m))<=$(=Date(vToday))"} >} money)

shekhar_analyti
Specialist
Specialist

small correction :

vL15m=MonthStart(AddMonths(Max(Date(Today())),-15))

prahlad_infy
Partner - Creator II
Partner - Creator II
Author

Thank You Sir . It is working .

But i do not seeing any difference between results of
AddMonths(Max(Date(Today())),-15)

MonthStart(AddMonths(Max(Date(Today())),-15))

Explain it to me .