Skip to main content
Announcements
Global Transformation Awards! Applications are now open. Submit Entry
cancel
Showing results for 
Search instead for 
Did you mean: 
jose123456
Contributor
Contributor

AYUDA CON CREAR CAMPO

hola  quisiera ayuda para crear un campo que sume  puntos  por  cliente  algo asii como agg(sum(puntos),clientes)

pero en el scrip o concatenar sum(puntos)  con un string

LOAD DIA,

     Año,

     Fecha,

        day(Fecha)as dia,

     [Player ID],

aggr(sum( [Number of Points]),[Player ID])

     [Apellido y Nombre],

      [Time Played (mm)],

     [Number of Points],

     [Total  In $],

     [Total Out $],

     [Bill In $],

     [Jackpot $],

     Age,

     [City / Town],

     [PLAYER LEVEL],

     Gender,

     [Postal code],

     [Hour Start],

     [Tarjeta CHIPCASH],

     F19,

     F20

FROM

C:\Users\JoseLuis\Desktop\jose.xls

(biff, embedded labels, table is [Player$]);

1 Solution

Accepted Solutions
Nicole-Smith

Data:

LOAD DIA,

     Año,

     Fecha,

     day(Fecha)as dia,

     [Player ID],

     [Apellido y Nombre],

     [Time Played (mm)],

     [Number of Points],

     [Total  In $],

     [Total Out $],

     [Bill In $],

     [Jackpot $],

     Age,

     [City / Town],

     [PLAYER LEVEL],

     Gender,

     [Postal code],

     [Hour Start],

     [Tarjeta CHIPCASH],

     F19,

     F20

FROM

C:\Users\JoseLuis\Desktop\jose.xls

(biff, embedded labels, table is [Player$]);

LEFT JOIN (Data)

LOAD [Player ID],

     sum([Number of Points]) as SumOfPoints

RESIDENT Data

GROUP BY [Player ID];

View solution in original post

1 Reply
Nicole-Smith

Data:

LOAD DIA,

     Año,

     Fecha,

     day(Fecha)as dia,

     [Player ID],

     [Apellido y Nombre],

     [Time Played (mm)],

     [Number of Points],

     [Total  In $],

     [Total Out $],

     [Bill In $],

     [Jackpot $],

     Age,

     [City / Town],

     [PLAYER LEVEL],

     Gender,

     [Postal code],

     [Hour Start],

     [Tarjeta CHIPCASH],

     F19,

     F20

FROM

C:\Users\JoseLuis\Desktop\jose.xls

(biff, embedded labels, table is [Player$]);

LEFT JOIN (Data)

LOAD [Player ID],

     sum([Number of Points]) as SumOfPoints

RESIDENT Data

GROUP BY [Player ID];