Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Dear Qlik Community ,
I know this topic it posted more than 3 time but I check all of it nothing similar to this.
My case is ; I need to get the new Customer where is in variable changed based on the variable to change .
I have to QVD one for Orders and the other for the customer data, the order qvd it contain all details for the order data with column called SHIFT_DATE this column store all date for the daily orders and also this column I use it as my master calendar and my primary key in the order view is my Cust_phone_number containing the customer phone number joined with the customer view, and inside the customer view there is a CREATION_DATE this will store the date for customer in the first time in my DB; so my scenario is :
I try to use variable and set analysis but every time gave me wrong data or errors in the set analysis,
Any help pleas on this.
I attached the QVD Sample containing the views.
Message was edited by: Ahmad Kastero
It would help if you reduce the data in your example rather than posting a 70Mb file.
Preparing examples for Upload - Reduction and Data Scrambling
Thank you Colin Albert for advice, i upload the reduced copy .
Dear Ahmad,
Can you guide us more, like what selection you are doing and what should be the output as per your selection.
Regards,
Kaushik Solanki
what i did in my original application on one of the things to get the new and old customer is :
1. i create a variable to get the new customer before 3 month the variable was =Max(CREATION_DATE)-90 to get 3 month back but when i validate the numbers with my database it was incorrect and it dose not work if i select specific month; what i want is if i select specific month it will retrieve the number of the new customer in text box (it will check if the CREATION_DATE >= Current selection or my variable )
Ok. This clears what you want.
Now can you help in vallidating the result. Can you tell us what should be the count of customers for 3 months in the data which you had shared.
Regards,
Kaushik Solanki
yes,
i just execute query on my DB for :
count the CUST_PHONE_NMBR where the CREATION_DATE >='2016-01-01' and CREATION_DATE <='2016-03-31'
and the result is 120113 ..
The data which you have shared gives the count as 114458 and distinct count as 100890.
Make sure that you have extracted same numbers of records from database to qlikview.
Now only way to check what goes wrong or what records are missing is.
1. Check at Month level.
Get the monthly count.
2. Check which month you have mismatch.
3. Check the individual customer ID for which data is missing.(Using Vlookup)
Regards,
Kaushik Solanki
i check on month level:
Jan = 42852
Feb = 37968
Mar = 39293
and the total is 120133
Hi Ahmad,
Values do not match for any month.
Make sure that you have fetched same numbers of records in Qlikview from Sql Database.
Regards,
Kaushik Solanki