Qlik Community

QlikView Layout & Visualizations

Discussion Board for collaboration on QlikView Layout & Visualizations.

cbaqirdhds
Contributor II

Set Analysis to include Future Data

What I want is to display one row for each APP_DATE with the max(FCST_DATE) showing as 12/31/2015.

2-2-2016 2-57-36 PM.jpg

I have created a Variable for max(FCST_DATE) = vMaxFCST_DATE

  Only include FCST_AMTs for dates equal to or greater than the m

ax(APP_DATE) where ACT_AMT >0 (APP='ACTUAL').

For example, even though we are in February, we won't yet have any ACT_AMT data for APP_DATE in January so the FCST_AMT sum SHOULD include the FCST_AMT from APP_DATE in January.

   

I need some help to get the view above.

Sum({$<APP_DATE={">$(=Max({<ACT_AMT={'>0'}>}APP_DATE))"},FCST_DATE={$(vMaxFCST_DATE)}>}FCST_AMT)

Tags (1)
1 Solution

Accepted Solutions

Re: Set Analysis to include Future Data

Compare it with this one:

Sum({$<  APP_DATE={">$(=Max({<ACT_AMT={'>0'}>}APP_DATE))"},  FCST_DATE={"$(=date(max(FCST_DATE), 'MM/DD/YY')))"}>}FCST_AMT)


talk is cheap, supply exceeds demand
6 Replies

Re: Set Analysis to include Future Data

Maybe this:

=round(Sum({$<FISCAL_YEAR=,APP_DATE={">$(=date(Max({<ACT_AMT={'>0'}>}APP_DATE), 'MM-DD-YYYY'))"}>}FCST_AMT), 1000)/1000


talk is cheap, supply exceeds demand
cbaqirdhds
Contributor II

Re: Set Analysis to include Future Data

Thanks  - that helps for the <APP_DATE={">$(=Max({<ACT_AMT={'>0'}>}APP_DATE))"} part.

cbaqirdhds
Contributor II

Re: Set Analysis to include Future Data

What's wrong with this syntax?

=Sum({$<APP_DATE={">$(=Max({<ACT_AMT={'>0'}>}APP_DATE))"}, FCST_DATE=date(max(FCST_DATE), 'MM/DD/YY'))>})FCST_AMT)

Re: Set Analysis to include Future Data

Compare it with this one:

Sum({$<  APP_DATE={">$(=Max({<ACT_AMT={'>0'}>}APP_DATE))"},  FCST_DATE={"$(=date(max(FCST_DATE), 'MM/DD/YY')))"}>}FCST_AMT)


talk is cheap, supply exceeds demand
cbaqirdhds
Contributor II

Re: Set Analysis to include Future Data

that gives me Error in set Modifier Expression.

Re: Set Analysis to include Future Data

Works for me:

comm203870.png


talk is cheap, supply exceeds demand
Community Browser