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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Count of Distinct Records

Dear Experts,

Kindly help me regarding the Following

PO No
PR NO
RFQ NO
Expression
1010110114000
2020120113000
30301
2000
40
30115000

I am having a Pivot Table of the above type

I am making another Chart in which I am counting No.POs, No of PRs and No of RFQs

I am using following script =count (distinct (FIELD NAME)),

Result should be PO = 4 PR = 3 RFQ  = 3

BUT I am getting result PO= 4 PR = 4 RFQ = 4

I think it is counting the blank field also

Kindly help on this

Thanks and Regards,

Animesh

1 Solution

Accepted Solutions
Not applicable
Author

Hi animesh_5,

yes, blank will be counted as a value but null will not be counted. So, if there is a blank then you can force null.

Which will give you correct results.

Please find the attached app.

Let me know if any issue.

..

Ashutosh

View solution in original post

3 Replies
nilesh_gangurde
Partner - Specialist
Partner - Specialist

Hi Animesh,

Please attach the sample data with qvw file

Regards,

Nilesh Gangurde

Not applicable
Author

Hi animesh_5,

yes, blank will be counted as a value but null will not be counted. So, if there is a blank then you can force null.

Which will give you correct results.

Please find the attached app.

Let me know if any issue.

..

Ashutosh

Not applicable
Author

Dear Ashutosh,

I was having a lot problem with this perticular Issue, it is solved with your help !!!!

Thanks a lot Sir.