Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Above function with two dimensions not working

Hi Qlik,

I'm facing issue with aggr and above function . Actually i want to show the closing balance as the opening balance to the next month.

By using single dimension Year-Month it showing values exactly what i expected.

Using Single dimension Result:   

Year-MonthOpen BalanceCreatedClosedClosing Balance
2018-Jan01055
2018-Feb5757
2018-Mar712109

Formula used for Open Balance is

=num(SUM(aggr(above(RangeSum(Above(total count({<Date_Type={'CreatedDateRelated'}>}distinct ticket_id) , 0, RowNo()))

  -

RangeSum(Above(total Count({<Date_Type={'ClosedDateRelated'}>}distinct ticket_id) , 0, RowNo()))),Year_Month1)))

When adding dimensions Year-Month and Priority its not showing exactly what i expected

Two dimensions Showing Result As:  

-Year-Month

-Priority

Open Balance Created Closed Closing Balance
2018-Jan
L10523
L20532
2018-Jan Total01055
2018-Feb
L22754
2018-Feb Total2754
2018-Mar
L13654
L24655
2018-Mar Total712109
Grand Total9292018

Here '2018 - Feb' total Open balance is showing as 2 but total open balance should show 5 ,Because previous closing balance is 5 which is carry forward to '2018-Feb'.Here L1 priority activities not there in the Feb month thats why its not showing L1 Open balance count 3.

Excepting Result like this:

-Year-Month

-Priority

Open Balance Created Closed Closing Balance
2018-Jan
L10523
L20532
2018-Jan Total01055
2018-Feb
         L1           3        0       0              0
L22754
2018-Feb Total5754
2018-Mar
L13654
L24655
2018-Mar Total712109
Grand Total9292018

Please help me in this.

Thanks and Regards

M Subash Chandra

3 Replies
ogautier62
Specialist II
Specialist II

Hi,

may be use just above(closing balance) for open balance without rangesum

regards

Anonymous
Not applicable
Author

Hi Olivier,

I Tried by using above function without using rangesum but it didn't work as i expected.

Regards

M Subash

ogautier62
Specialist II
Specialist II

what's wrong axactly ?

it should work fine