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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
cristianj23a
Partner - Creator III
Partner - Creator III

Set analysis in Script

Hi.

Can someone help me enter this code to the Script please

=Aggr(

Num(Count(distinct{<DíaSemana={'*'}-{'dom'},%FILTRO_ACTIVOS={'ACTIVO'},[T554T.Clase absent./pres._AWART]-={'1003','1013','1015','1020','1022','1025'},PA0000.Fecha = {"$(='<=' & date(NOW(),'DD/MM/YYYY'))"}>}PA2001.Día),'###,###'),[PA0000.Número de personal_PERNR],[T554T.Clase absent./pres._AWART],Año,Mes)

https://www.linkedin.com/in/cristianjorge/
Do not forget to mark as "Accepted Solution" the comment that resolves the doubt.
Labels (1)
1 Solution

Accepted Solutions
sunny_talwar
MVP
MVP

May be like this

LOAD [PA0000.Número de personal_PERNR],

     [T554T.Clase absent./pres._AWART],

     Año,

     Mes,

     Count(DISTINCT [PA2001.Día]) as Count

Resident .....

Where Len(Trim(DíaSemana)) > 0 and DíaSemana <> 'dom', %FILTRO_ACTIVOS = 'ACTIVOS' and not Match([T554T.Clase absent./pres._AWART], '1003','1013','1015','1020','1022','1025') and [PA0000.Fecha] <= Today()

Group By [PA0000.Número de personal_PERNR], [T554T.Clase absent./pres._AWART], Año, Mes;

View solution in original post

2 Replies
sunny_talwar
MVP
MVP

May be like this

LOAD [PA0000.Número de personal_PERNR],

     [T554T.Clase absent./pres._AWART],

     Año,

     Mes,

     Count(DISTINCT [PA2001.Día]) as Count

Resident .....

Where Len(Trim(DíaSemana)) > 0 and DíaSemana <> 'dom', %FILTRO_ACTIVOS = 'ACTIVOS' and not Match([T554T.Clase absent./pres._AWART], '1003','1013','1015','1020','1022','1025') and [PA0000.Fecha] <= Today()

Group By [PA0000.Número de personal_PERNR], [T554T.Clase absent./pres._AWART], Año, Mes;

cristianj23a
Partner - Creator III
Partner - Creator III
Author

Thank You Sunny.

https://www.linkedin.com/in/cristianjorge/
Do not forget to mark as "Accepted Solution" the comment that resolves the doubt.