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: 
Getalok
Contributor
Contributor

Final Status Update

HI Team ,

I have to calculate final status(Final Compliance)  based on another column status(Individual Subject Compliance deadline)  if student Flag is Yes in all subject (in  Individual Subject Compliance deadline) then Final Compliance will be Yes otherwise NO . Kindly guide me to get this calculation .

 

Student ID Subject Individual Subject Compliance deadlineFinal Compliance 
ABC12AYesNO
ABC12BNONO
DEF21AYESYES
DEF21BYESYES

 

Thanks

1 Solution

Accepted Solutions
Taoufiq_Zarra

@Getalok  or in UI

Dimension:

Student ID , Subject , Individual Subject Compliance deadline

Measure :

=if(wildmatch(concat(total<[Student ID]>[Individual Subject Compliance deadline],''),'*NO*')>0,'NO','YES')

 

output:

Taoufiq_Zarra_1-1628087924520.png

 

Regards,
Taoufiq ZARRA

"Please LIKE posts and "Accept as Solution" if the provided solution is helpful "

(you can mark up to 3 "solutions") 😉

View solution in original post

3 Replies
Taoufiq_Zarra

@Getalok  One solution in load :

Input:
LOAD * INLINE [
    Student ID , Subject , Individual Subject Compliance deadline
    ABC12, A, Yes
    ABC12, B, NO
    DEF21, A, YES
    DEF21, B, YES
];
left join 
load concat([Individual Subject Compliance deadline]) as ConcatTmp, [Student ID] resident Input group by [Student ID];



final: 
noconcatenate

load [Student ID] , Subject , [Individual Subject Compliance deadline],if(wildmatch(ConcatTmp,'*NO*')>0,'NO','YES') as [Final Compliance] resident Input; 

drop table Input;

 

output:

Taoufiq_Zarra_0-1628087749455.png

 

Regards,
Taoufiq ZARRA

"Please LIKE posts and "Accept as Solution" if the provided solution is helpful "

(you can mark up to 3 "solutions") 😉
Taoufiq_Zarra

@Getalok  or in UI

Dimension:

Student ID , Subject , Individual Subject Compliance deadline

Measure :

=if(wildmatch(concat(total<[Student ID]>[Individual Subject Compliance deadline],''),'*NO*')>0,'NO','YES')

 

output:

Taoufiq_Zarra_1-1628087924520.png

 

Regards,
Taoufiq ZARRA

"Please LIKE posts and "Accept as Solution" if the provided solution is helpful "

(you can mark up to 3 "solutions") 😉
Getalok
Contributor
Contributor
Author

Thank You so much this works perfectly  @Taoufiq_Zarra