Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
paulyeo11
Master
Master

Set analysis only for current year ? Can it computer last 2 year from date selected ?

Hi all

Set analysis only for current year ? Can it computer last 2 year from date selected ?

My inventory amt consist of when the date stock and amount for last 14 year start from 2000

If user select yr = 2013 mth = jan

Can QV compute since 2013 jan till 2000 jan amount ?

Paul

2 Replies
kaushiknsolanki
Partner Ambassador/MVP
Partner Ambassador/MVP

HI,

     Use below set analysis.

     Sum({<Date = {">=$(=monthstart(addmonths(Max(Date),-24)))<=$(=Max(Date))"}>}Amount)

Regards,

Kaushik Solanki

Please remember to hit the 'Like' button and for helpful answers and resolutions, click on the 'Accept As Solution' button. Cheers!
paulyeo11
Master
Master
Author

    Hi SOK

  

    thank you for your reply.

    Sum({<Date = {">=$(=monthstart(addmonths(Max(Date),-24)))<=$(=Max(Date))"}>}Amount/1000)

  I try your expression , but i not getting the right result.

  Paul