Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
Chanty4u
MVP
MVP

Missig count

hi all,

I have small issue

3expressions i have like below

=count(records)      500

=count({<Status={'complete','incomplete'} >}Record)      400

=count({<Status -={'complete','incomplete'} >}Record)     95

here is the issue  comes

when i club the exp 2&3   i need to get 500 records but my result showing 495 only.... where am missing  remaining 5 recors?

can anyone help me out on this?

Best

chanty

1 Solution

Accepted Solutions
vinieme12
Champion III
Champion III

something like below should work

Date = {"=len(Date)<1"}

Vineeth Pujari
If a post helps to resolve your issue, please accept it as a Solution.

View solution in original post

14 Replies
jonathandienst
Partner - Champion III
Partner - Champion III

The missing records have nulls for Status. Set expressions work like selections in the front end and do not select null values, just like you can't select null values in a list box.

Logic will get you from a to b. Imagination will take you everywhere. - A Einstein
kaushiknsolanki
Partner Ambassador/MVP
Partner Ambassador/MVP

Hi,

It is because your status field contains the null value.

You can find using this statement in script.

LOad *, if(Isnull(Status),1,0) as Flag From xyz;

Regards,

Kaushik Solanki

Please remember to hit the 'Like' button and for helpful answers and resolutions, click on the 'Accept As Solution' button. Cheers!
Chanty4u
MVP
MVP
Author

i have checked no null values in the status field

Chanty4u
MVP
MVP
Author

No kaushik,

There are no null values found.

kaushiknsolanki
Partner Ambassador/MVP
Partner Ambassador/MVP

Do one thing.

Create a list box of Status field and in Properties->General Tab-> Click on Show Frequency.

You will see how many records are there for each value of the field. That will tell u where the problem is.

Regards,

Kaushik Solanki

Please remember to hit the 'Like' button and for helpful answers and resolutions, click on the 'Accept As Solution' button. Cheers!
Chanty4u
MVP
MVP
Author

sorry wrong window its in QLiskense not Qlikview

kaushiknsolanki
Partner Ambassador/MVP
Partner Ambassador/MVP

In Qlik Sense you can create a straight table, put status as dimension and Count(Status) as expression and see the values.

Regards,

Kaushik Solanki

Please remember to hit the 'Like' button and for helpful answers and resolutions, click on the 'Accept As Solution' button. Cheers!
Anil_Babu_Samineni

When you want to show 500 then why not simple Count(Status) OR Count(Records)

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
vinieme12
Champion III
Champion III

If you don't have null's then they may be spaces or enter characters , have you checked for such issues?

Do this for your Status Field during load

Pick(Wildmatch(Status,'Complete','Incomplete')+1,'NA','Complete','Incomplete') as Status 

This will replace any values other than Complete or Incomplete

Vineeth Pujari
If a post helps to resolve your issue, please accept it as a Solution.