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

Cumulative Straight Table

DateDaily PerformanceCumulative Performance
01/01/20121010
02/01/20121525
03/01/2012732
...

30/01/20121547
31/01/20121057
01/02/201255
02/02/20121015
03/02/2012722
04/02/2012931

Hello,

I am looking for some help with set analysis, I need to provide a Cumulative Performance column on performance data.

What I am trying to achieve is displayed above,

With the cumalative performance expression restarting at each month beginning.

Any help would be appreciated,

Thanks

Jeremy

5 Replies
lironbaram
Partner - Master III
Partner - Master III

hi check this example

Not applicable
Author

Thanks for reply!

Unfortunatly, I need the straight table to reflect the 'Cumalative Performance' up to the date and including any date selected.

EG: If i selecte the date 30/01/2012

30/01/20121547

The above will be returned.

Jeremy

Not applicable
Author

Hi,

Calculating the cumulative values during LOAD might be helpful.

Pls. see the following post:

http://community.qlik.com/message/122935#122935

Pls. let me know if it is not clear, I can provide an example.

Regards,

http://quickdevtips.blogspot.com/

Not applicable
Author

Hi,

pls see the attached example.

Regards

http://quickdevtips.blogspot.com/

Sokkorn
Master
Master

Hi Jeremy,

Let try this way:

1. Load Data

[Data]:

LOAD * INLINE [

Date        ,    Daily Performance

01-01-2012    ,    10

02-01-2012    ,    15

03-01-2012    ,    7

30-01-2012    ,    15

31-01-2012    ,    10

01-02-2012    ,    5

02-02-2012    ,    10

03-02-2012    ,    7

04-02-2012    ,    9];

2. Create one variable (Settings ==> Variable Overview ==> Add)

          vAccumulate = Sum({$<Date = {"<=$(=MAX(Date))"}>} [Daily Performance])

3. Create Pivot Table with

     a. Dimension:

          1. Date

          2. Daily Performance

     b. Expression:

          1. =RangeSum(Above(Total Sum([Daily Performance]),0,RowNo(TOTAL)))    and put IsNull(Date) in Conditional (Enable expression when user clear Date value)

          2. =vAccumulate    and put NOT IsNull(Date) in Conditional (Enable expression when user select Date value)
4. Play around your data and selection.

See the sample attached file.

Hope this help.

Regards,

Sokkorn