Hi guys,
I have the following information in a table:
NI Num Subscription Balance
[FONT="]NI # 1[/FONT] [FONT="]17[/FONT] 36
[FONT="]NI # 1[/FONT][FONT="][/FONT] 50 500
[FONT="]NI # 1[/FONT] [FONT="]100[/FONT] 0
[FONT="]NI # 1[/FONT] [FONT="]100[/FONT] 1000
[FONT="]NI # 1[/FONT] [FONT="]200[/FONT] 0
[FONT="]NI # 1[/FONT] [FONT="]250[/FONT] 0
I’d like to add together the subscriptions where the balance is 0. I’ve tried using the following query:
NI Number Subscription Balance
Group By Sum Group By
"NI # 1" >0
However that just returns these results:
NI Num SumOfSubscription Balance
[FONT="]NI # 1[/FONT] [FONT="]17[/FONT] 36
[FONT="]NI # 1[/FONT] [FONT="]50[/FONT] 500
[FONT="]NI # 1[/FONT] 100 5000
Can anyone tell me how I would get this result:
NI Num SumOfSubscription
[FONT="]NI # 1[/FONT] [FONT="]267[/FONT]
I have the following information in a table:
NI Num Subscription Balance
[FONT="]NI # 1[/FONT] [FONT="]17[/FONT] 36
[FONT="]NI # 1[/FONT][FONT="][/FONT] 50 500
[FONT="]NI # 1[/FONT] [FONT="]100[/FONT] 0
[FONT="]NI # 1[/FONT] [FONT="]100[/FONT] 1000
[FONT="]NI # 1[/FONT] [FONT="]200[/FONT] 0
[FONT="]NI # 1[/FONT] [FONT="]250[/FONT] 0
I’d like to add together the subscriptions where the balance is 0. I’ve tried using the following query:
NI Number Subscription Balance
Group By Sum Group By
"NI # 1" >0
However that just returns these results:
NI Num SumOfSubscription Balance
[FONT="]NI # 1[/FONT] [FONT="]17[/FONT] 36
[FONT="]NI # 1[/FONT] [FONT="]50[/FONT] 500
[FONT="]NI # 1[/FONT] 100 5000
Can anyone tell me how I would get this result:
NI Num SumOfSubscription
[FONT="]NI # 1[/FONT] [FONT="]267[/FONT]
[FONT="]
[/FONT]
[/FONT]
Last edited: