Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
bertinabel
Creator
Creator

Contador dentro de carga con Group By

Buen Día.

     Ojala me puedan ayudar con lo siguiente:

    

     Estoy cargando una tabla resumen, de una tabla temporal. y entre los campos estoy haciendo la suma del un campo y esty haciendole un Group by.

     Hay alguna manera de colocar un contador que me indique cuantos registros son los que se sumaron y se agruparon en 1 solo registro?

FACT_R:

LOAD

     Account_ID,

     PaymentFrecuency,

     PYR_CalendarioDT,

     PYR_Period,

  SUM( ODS_TotalExpected) as ODS_TotalExpected,

     SUM(PYR_PaymentTotalAMT ) as PYR_PaymentTotalAMT

Resident FACT_tmp

Group By

  Account_ID,

  PaymentFrecuency,

  PYR_Period,

  PYR_CalendarioDT;

1 Solution

Accepted Solutions
ramoncova06
Partner - Specialist III
Partner - Specialist III

Ya intentaste con un count ?

FACT_R:

LOAD

     Account_ID,

     PaymentFrecuency,

     PYR_CalendarioDT,

     PYR_Period,

  SUM( ODS_TotalExpected) as ODS_TotalExpected,

     SUM(PYR_PaymentTotalAMT ) as PYR_PaymentTotalAMT

     count(ODS_TotalExpected) as Contador

Resident FACT_tmp

Group By

  Account_ID,

  PaymentFrecuency,

  PYR_Period,

  PYR_CalendarioDT;

View solution in original post

4 Replies
jvitantonio
Luminary Alumni
Luminary Alumni

Hola Bertin,

Has probado recno() y rowno() ?

Saludos

Juan !

ramoncova06
Partner - Specialist III
Partner - Specialist III

Ya intentaste con un count ?

FACT_R:

LOAD

     Account_ID,

     PaymentFrecuency,

     PYR_CalendarioDT,

     PYR_Period,

  SUM( ODS_TotalExpected) as ODS_TotalExpected,

     SUM(PYR_PaymentTotalAMT ) as PYR_PaymentTotalAMT

     count(ODS_TotalExpected) as Contador

Resident FACT_tmp

Group By

  Account_ID,

  PaymentFrecuency,

  PYR_Period,

  PYR_CalendarioDT;

bertinabel
Creator
Creator
Author

Buen Día.

Muchas gracias @Ramon Covarrubias probé con el count ha quedado resuelta mi duda.

Saludos.

ramoncova06
Partner - Specialist III
Partner - Specialist III

me alegro que haya funcionado