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
ashwanin
Specialist
Specialist

Expression seems to be perfect. Might be you have to check the database for this time frame for the respective entries.

er_mohit
Master II
Master II

See the attached file

your data is ok there's only 5 id for Result={'Work Completed'}

Not applicable
Author

hi

try to write in same date format like this

SUPPOSE YOUR DATE FORMAT IN 'DD-MM-YYYY'

THEN TRY THIS

Count(DISTINCT {$<Date={">=$(=Date(min(Date),'DD-MM-YYYY'))<=$(=Date(max(Date),'DD-MM-YYYY'))"}Source={'ITDepartment'},Order={ITDepartment'},Result={'Work Completed'},Flag={1}>}EmployeeID)

MK_QSL
MVP
MVP

There is definitely a problem in your DATE dimension.

If you create a list box for Date you can see multiple occurrence of the same Date...

Looking wrong...

Not applicable
Author

Thanks. this is sample data so it is showing 5 but in the original file it is showing 10. the database table data is also ok. it seems really strange. any ideas?

senpradip007
Specialist III
Specialist III

Can you attach original application?

Not applicable
Author

Yes you are right. but I joined this date with clendar date. so in the original file it is taking only single occurance. Any help please

MK_QSL
MVP
MVP

We can help only if you give us either proper sample data file or your sample apps as the expression is looking right.

sudeepkm
Specialist III
Specialist III

I see 5 records from your QVW but you said you found 10 records for the selections you described. Am I missing something?

T110185.png

Not applicable
Author

Hi,

can you upload your qvw?

MC