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

Announcements
Join us to spark ideas for how to put the latest capabilities into action. Register here!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Date format nightmare

Hi,
I have the following table imported from Excel, HTML and qvd:
WeekMemberGym
WeekCommencingVisit DateVisit DateMemberWeekCommencingGym
5/10/20155/10/20156/10/2015John5/10/2015A
5/10/20156/10/20157/10/2015Danny5/10/2015B
5/10/20157/10/20157/10/2015Amelia5/10/2015C
5/10/20158/10/20159/10/2015Anne5/10/2015D
I need to get the frequent vist of the member in every week
I tried to concatenate all 3 table, but I just could not get the Visist Date match correctly
When I select WeekComencing 5/10/2015, members visits from different date appears in the week as well like below:
WeekCommencingVisit DateMember
5/10/20156/10/2015John
5/10/20157/10/2015Danny
5/10/20157/10/2015Amelia
5/10/20159/10/2015Anne
5/10/201524/5/2015Susan
5/10/201526/8/2015John
When I look at the visit Date only in the Member Table, it shows
24/5/2015
26/8/2015
6/10/2015
7/10/2015
7/10/2015
9/10/2015
Those wrong date were aligning left.  I have tried to use all sort of date or date# method or num(visit_date), but still not able to resolve it.
any idea what else I could do to resolve this issue?
And it is better to use concatenate or link table for this case?
Thanks,
David
2 Replies
martyn_birzys
Creator
Creator

At first glance it looks like US date format MM/DD/YYYY, if that's the case use date# to fix it.

Apply date(floor(date(date_field))) to make sure all date fields are identical format.

Rgds

MarcoWedel

please provide random samples of your sources and your script to test with.

regards

Marco