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

Announcements
Join us in Toronto Sept 9th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Expression error?

Hi,

I have dimension and expression as below in straight table

Dimension: TeamMember

Expression: Count(DISTINCT {$<Source={'ITDepartment'},Order={ITDepartment'},Result={'Work Completed'},Flag={1}>}EmployeeID)

when I select the Date from 03/03/2014 to 07/03/2014 the count of the expression is showing 10 whereas in the database the count is showing 5. can anynone please tell me is there anything wrong in expression?

Thanks.

38 Replies
MK_QSL
MVP
MVP

Where you are getting 10?

Can I see that file please?

PrashantSangle

Hi,

You can do one thing,

take EmployeeID in list box then select your date range and check the frequency of EmployeeID

If it is greater than your expected count then might be it is issue of your data model.

Great dreamer's dreams never fulfilled, they are always transcended.
Please appreciate our Qlik community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved 🙂
Not applicable
Author

ok will send you

Not applicable
Author

Please see attached and let me know what is the problem.

MK_QSL
MVP
MVP

It is showing 10 because they are indeed 10.

Please check the enclosed file...

Not applicable
Author

You mean the count is correct? If so then for the same selections in access database the count is showing 10

Please can you clear my confusion.

EDIT: Moreover there is problem only with these two expressions. If I select other dates again the countof expressions is entirely different compared to database.

MK_QSL
MVP
MVP

Dont have idea about your access database.

But the file you have provided is showing the correct result.

Not applicable
Author

Thanks. This is really frustrating me . Even I tried with one table but still showing the same result.

Not applicable
Author

will it creates any problem to update the data refresh if I keep on relaoding the file every 2 minutes/5 minutes??