Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi experts of Qlik.
Column "No Vencido" is:
if(today( 2)<=(BLDAT+ZBD1T), Sum({<"SHKZG"={S}>} DMBTR)-Sum({<"SHKZG"={H}>} DMBTR))
The following columns are more or less the same but the range is different:
if((TODAY( 2)-(BLDAT+ZBD1T))>0 and (TODAY( 2)-(BLDAT+ZBD1T))<=30,Sum({<"SHKZG"={S}>} DMBTR)-Sum({<"SHKZG"={H}>} DMBTR))

This is what I want the table to show: One single row for the customer.
| Code | Customer | No Vencido | 0-30 | 31-60 | 61-90 | 91-180 | >180 |
|---|---|---|---|---|---|---|---|
| 1000012 | FIDESA SA | 1133$ | - | - | - | - | -540$ |
If I leave the society field, it gives me more than one row due to the fact that there are different societies which is correct but I remove it, it doesn't sum.
Thank you in advance.
Regards.
Try using Sum(Aggr()) function
Sum(Aggr(If(Today(2) <= (BLDAT+ZBD1T), Sum({<"SHKZG"={S}>} DMBTR)-Sum({<"SHKZG"={H}>} DMBTR)), Sociedad, Code, Customer))
No one? ![]()
Try using Sum(Aggr()) function
Sum(Aggr(If(Today(2) <= (BLDAT+ZBD1T), Sum({<"SHKZG"={S}>} DMBTR)-Sum({<"SHKZG"={H}>} DMBTR)), Sociedad, Code, Customer))
Can you provide a picture of your data model?
Works like a charm. ![]()
Thanks.