Announcements
cancel
Showing results for
Did you mean:
Creator II

Hi I could not run this code of my scrip, could you help to me?

Thank's

ApplyMap('Recurrency',(COUNT(DISTINCT SALESID))) AS RECURRENCY

GROUP BY CUSTACCOUNT_LINE

RESIDENT INVENTTRANS WHERE DATEFINANCIAL_LINE<='\$(vminmonth)';

1 Solution

Accepted Solutions
Luminary Alumni

Hi,

Your GROUP BY clause should be after the RESIDENT:

ApplyMap('Recurrency',(COUNT(DISTINCT SALESID))) AS RECURRENCY

RESIDENT INVENTTRANS WHERE DATEFINANCIAL_LINE<='\$(vminmonth)'

GROUP BY CUSTACCOUNT_LINE;

Regards,

Stephen

Stephen Redmond is author of QlikView for Developer's Cookbook

He is CTO of CapricornVentis a QlikView Elite Partner. We are always looking for the right people to join our team.

4 Replies
Luminary Alumni

Hi,

Your GROUP BY clause should be after the RESIDENT:

ApplyMap('Recurrency',(COUNT(DISTINCT SALESID))) AS RECURRENCY

RESIDENT INVENTTRANS WHERE DATEFINANCIAL_LINE<='\$(vminmonth)'

GROUP BY CUSTACCOUNT_LINE;

Regards,

Stephen

Stephen Redmond is author of QlikView for Developer's Cookbook

He is CTO of CapricornVentis a QlikView Elite Partner. We are always looking for the right people to join our team.

Creator II
Author

GREATTT Thank's

But I have a Question, I did this calculation from a resident to do it fast, but unfortunately is slower than to attack the DDBB, You know why??

Thank's

Eduard

Luminary Alumni

Hi,

Yes, that can happen with Resident.  Sometimes, you might find it quicker to Store your table to QVD and then load the next step from the QVD instead of using Resident.

Regards,

Stephen

Stephen Redmond is author of QlikView for Developer's Cookbook

He is CTO of CapricornVentis a QlikView Elite Partner. We are always looking for the right people to join our team.