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

Announcements
ALERT: QlikView server communication interruptions following Microsoft Windows Domain Controller security updates
cancel
Showing results for 
Search instead for 
Did you mean: 
jood_ahmad
Creator II
Creator II

# Of New Customer

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 :

  1. If I need to know the new customer in specific period based in the selection to count the customer phone number where the creation date >= the current selection.
  2. If I need to know the new customer by using the variable in input box once I enter the date that I need it will search only all new customer that > my input date.

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

Labels (1)
10 Replies
Colin-Albert
Partner - Champion
Partner - Champion

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

jood_ahmad
Creator II
Creator II
Author

Thank you Colin Albert for advice, i upload the reduced copy .

kaushiknsolanki
Partner Ambassador/MVP
Partner Ambassador/MVP

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

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

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 )

kaushiknsolanki
Partner Ambassador/MVP
Partner Ambassador/MVP

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

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

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 ..

kaushiknsolanki
Partner Ambassador/MVP
Partner Ambassador/MVP

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

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

i check on month level:

Jan = 42852

Feb = 37968

Mar = 39293

and the total is 120133

kaushiknsolanki
Partner Ambassador/MVP
Partner Ambassador/MVP

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

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