Qlik Community

Qlik Sense App Development

Discussion board where members can learn more about Qlik Sense App Development and Usage.

paulyeo11
Valued Contributor II

How to Combine GL_CODE 50057 & 50053 ?

Hi All

I have below work fine :-

GL_CODE = {50057}

Because i need to add one more number , so i try :-

GL_CODE = {50057}&{50053}


Money(RangeSum(
Above(RangeSum(Above(Sum({<year, month, GL_CODE = {50057}&{50053}>}[Amount]*1), 0, RowNo()))),
-Sum({<GL_CODE = {50057}&{50053}>}TOTAL Aggr(Sum({<year, month, GL_CODE = {50057}&{50053}>}[Amount]*1), YearMonth)))
, $(vMoneyFormatK_GL))

it does not work.

Paul

1 Solution

Accepted Solutions
MVP
MVP

Re: How to Combine GL_CODE 50057 & 50053 ?

May be this:

Money(RangeSum(

Above(RangeSum(Above(Sum({<year, month, GL_CODE = {50057, 50053}>}[Amount]*1), 0, RowNo()))),

-Sum({<GL_CODE = {50057, 50053}>}TOTAL Aggr(Sum({<year, month, GL_CODE = {50057, 50053}>}[Amount]*1), YearMonth)))

, $(vMoneyFormatK_GL))

2 Replies
paulyeo11
Valued Contributor II

Re: How to Combine GL_CODE 50057 & 50053 ?

my QVF

MVP
MVP

Re: How to Combine GL_CODE 50057 & 50053 ?

May be this:

Money(RangeSum(

Above(RangeSum(Above(Sum({<year, month, GL_CODE = {50057, 50053}>}[Amount]*1), 0, RowNo()))),

-Sum({<GL_CODE = {50057, 50053}>}TOTAL Aggr(Sum({<year, month, GL_CODE = {50057, 50053}>}[Amount]*1), YearMonth)))

, $(vMoneyFormatK_GL))