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

Announcements
Qlik GA: Multivariate Time Series in Qlik Predict: Get Details
cancel
Showing results for 
Search instead for 
Did you mean: 
patriciousa
Creator II
Creator II

Help with table not showing the results

Hi experts of Qlik.

  • The first table has Society, Code, Customer.

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

  • The second table, if I remove Society column, I don't get any results at all.

This is what I want the table to show: One single row for the customer.

CodeCustomerNo Vencido0-3031-6061-9091-180>180
1000012FIDESA SA1133$-----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.

1 Solution

Accepted Solutions
sunny_talwar

Try using Sum(Aggr()) function

Sum(Aggr(If(Today(2) <= (BLDAT+ZBD1T), Sum({<"SHKZG"={S}>} DMBTR)-Sum({<"SHKZG"={H}>} DMBTR)), Sociedad, Code, Customer))

View solution in original post

4 Replies
patriciousa
Creator II
Creator II
Author

No one?

sunny_talwar

Try using Sum(Aggr()) function

Sum(Aggr(If(Today(2) <= (BLDAT+ZBD1T), Sum({<"SHKZG"={S}>} DMBTR)-Sum({<"SHKZG"={H}>} DMBTR)), Sociedad, Code, Customer))

mgranillo
Specialist
Specialist

Can you provide a picture of your data model?

patriciousa
Creator II
Creator II
Author

Works like a charm.

Thanks.