Skip to main content
Woohoo! Qlik Community has won “Best in Class Community” in the 2024 Khoros Kudos awards!
Announcements
Nov. 20th, Qlik Insider - Lakehouses: Driving the Future of Data & AI - PICK A SESSION
cancel
Showing results for 
Search instead for 
Did you mean: 
missain89
Contributor
Contributor

How to count without null (null value in datetime)

Hi can someone help me to figure out this

 

= If(Len(Trim(allconvoyear))=0, Null(),count({<allstatus={'TAMAT PENGAJIAN','BELUM BERKONVOKESYEN'},eduPersonAffiliation={'Sarjana Muda','Doktor Falsafah','Diploma Lepasan Ijazah','Sarjana'}>}allmatric_no))

 

 

i dont want to count null value for allconvoyear because in my graph the convoyear null value is showing the null value 9k++

 

clipboard_image_0.png

 

clipboard_image_1.png

Labels (1)
1 Solution

Accepted Solutions
Arthur_Fong
Partner - Specialist III
Partner - Specialist III

Try this:

count({<allstatus={'TAMAT PENGAJIAN','BELUM BERKONVOKESYEN'},eduPersonAffiliation={'Sarjana Muda','Doktor Falsafah','Diploma Lepasan Ijazah','Sarjana'},allstatus-={"=Len(Trim(allconvoyear))<1"}>}allmatric_no))

 

If still not working, please provide sample app.

View solution in original post

6 Replies
Arthur_Fong
Partner - Specialist III
Partner - Specialist III

Try this:

count({<allstatus={'TAMAT PENGAJIAN','BELUM BERKONVOKESYEN'},eduPersonAffiliation={'Sarjana Muda','Doktor Falsafah','Diploma Lepasan Ijazah','Sarjana'},allmatric_no-={"=Len(Trim(allconvoyear))<1"}>}allmatric_no))

missain89
Contributor
Contributor
Author

clipboard_image_0.png

 

 

urm still not working 😞

Arthur_Fong
Partner - Specialist III
Partner - Specialist III

Try this:

count({<allstatus={'TAMAT PENGAJIAN','BELUM BERKONVOKESYEN'},eduPersonAffiliation={'Sarjana Muda','Doktor Falsafah','Diploma Lepasan Ijazah','Sarjana'},allstatus-={"=Len(Trim(allconvoyear))<1"}>}allmatric_no))

 

If still not working, please provide sample app.

missain89
Contributor
Contributor
Author

still not working,

here is my sample app

StarinieriG
Partner - Specialist
Partner - Specialist

Hi 

try with this expression

 

count({<allstatus={'TAMAT PENGAJIAN','BELUM BERKONVOKESYEN'},eduPersonAffiliation={'Sarjana Muda','Doktor Falsafah','Diploma Lepasan Ijazah','Sarjana'}>}

If(Len(allconvoyear)>0,allmatric_no))

Brett_Bleess
Former Employee
Former Employee

Did Giulia's last comment get things working?  If so, please be sure to use the Accept as Solution button on their post to give them credit for the help and to let others know what worked.  If you did something else, please consider posting that and then marking it, and if you are still working on things, leave an update for us.

Regards,
Brett

To help users find verified answers, please do not forget to use the "Accept as Solution" button on any post(s) that helped you resolve your problem or question.
I now work a compressed schedule, Tuesday, Wednesday and Thursday, so those will be the days I will reply to any follow-up posts.