Skip to main content
Woohoo! Qlik Community has won “Best in Class Community” in the 2024 Khoros Kudos awards!
Announcements
Nov. 20th, Qlik Insider - Lakehouses: Driving the Future of Data & AI - PICK A SESSION
cancel
Showing results for 
Search instead for 
Did you mean: 
paulyeo11
Master
Master

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
sunny_talwar

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))

View solution in original post

2 Replies
paulyeo11
Master
Master
Author

my QVF

sunny_talwar

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))