Skip to main content
Woohoo! Qlik Community has won “Best in Class Community” in the 2024 Khoros Kudos awards!
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: 
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.
1 Solution

Accepted Solutions
sunny_talwar

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

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.