Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi I could not run this code of my scrip, could you help to me?
Thank's
CONTADOR_COMPRAS:
LOAD *, floor('$(vminmonth)') as DATEFINANCIAL_CONTADOR,
AutoNumber(floor('$(vminmonth)')&'-'&CUSTACCOUNT_CONTADOR) AS LINK ;
LOAD
COUNT(DISTINCT SALESID) AS CONTADOR_COMPRAS,
CUSTACCOUNT_LINE AS CUSTACCOUNT_CONTADOR,
ApplyMap('Recurrency',(COUNT(DISTINCT SALESID))) AS RECURRENCY
GROUP BY CUSTACCOUNT_LINE
RESIDENT INVENTTRANS WHERE DATEFINANCIAL_LINE<='$(vminmonth)';
Hi,
Your GROUP BY clause should be after the RESIDENT:
CONTADOR_COMPRAS:
LOAD *, floor('$(vminmonth)') as DATEFINANCIAL_CONTADOR,
AutoNumber(floor('$(vminmonth)')&'-'&CUSTACCOUNT_CONTADOR) AS LINK ;
LOAD
COUNT(DISTINCT SALESID) AS CONTADOR_COMPRAS,
CUSTACCOUNT_LINE AS CUSTACCOUNT_CONTADOR,
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.
Follow me on Twitter: @stephencredmond
Hi,
Your GROUP BY clause should be after the RESIDENT:
CONTADOR_COMPRAS:
LOAD *, floor('$(vminmonth)') as DATEFINANCIAL_CONTADOR,
AutoNumber(floor('$(vminmonth)')&'-'&CUSTACCOUNT_CONTADOR) AS LINK ;
LOAD
COUNT(DISTINCT SALESID) AS CONTADOR_COMPRAS,
CUSTACCOUNT_LINE AS CUSTACCOUNT_CONTADOR,
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.
Follow me on Twitter: @stephencredmond
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
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.
Follow me on Twitter: @stephencredmond
I'm gonna do that!!! thank's Stephan