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: 
ali_hijazi
Partner - Master II
Partner - Master II

rangesum result on a selected year

Hello got the following graph

Untitled.png

my expression is as follows:

RangeSum(Above( total COUNT(DISTINCT{

  1

  <

  Year=$::Year

  ,MonthYear=$::MonthYear

  ,Month=$::Month

  ,QUARTER_YEAR=$::QUARTER_YEAR

  ,Quarter=$::Quarter

  ,FIX_DATE={">=$(vReferenceDate)"}

  ,RECORD_TYPE={'MAINSTREAM'}

  >

  } FIX_ID),1,RowNo()))

  

how can I keep the cumulative result when I select for example 2011 and still get 74865 on the green line above

Please advise

I can walk on water when it freezes
3 Replies
sunny_talwar

Try this:

If(Sum({1<Year=$::Year, MonthYear=$::MonthYear, Month=$::Month,QUARTER_YEAR=$::QUARTER_YEAR, Quarter=$::Quarter} FIX_ID) > 0,


RangeSum(Above( total COUNT(DISTINCT{1<Year =, MonthYear = , Month =, QUARTER_YEAR =, Quarter =, FIX_DATE = {">=$(vReferenceDate)"}, RECORD_TYPE={'MAINSTREAM'}>} FIX_ID),1,RowNo())))

ali_hijazi
Partner - Master II
Partner - Master II
Author

no didn't work

I can walk on water when it freezes
sunny_talwar

What about this:

If(Count(DISTINCT {1<Year=$::Year, MonthYear=$::MonthYear, Month=$::Month,QUARTER_YEAR=$::QUARTER_YEAR, Quarter=$::Quarter, RECORD_TYPE={'MAINSTREAM'}, FIX_DATE = {">=$(vReferenceDate)"}>} FIX_ID) > 0,


RangeSum(Above( total COUNT(DISTINCT{1<Year =, MonthYear = , Month =, QUARTER_YEAR =, Quarter =, FIX_DATE = {">=$(vReferenceDate)"}, RECORD_TYPE={'MAINSTREAM'}>} FIX_ID),1,RowNo())))