Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi,
I am using QlikView for last one month, it is very good reporting tool. I created one data model and prepared the reports, but I am getting the duplicate data in the reports.
More Info:
I have two tables TRANSACTIONS, TICKETS with below fields. I want to create data model using these two tables. Here master_doc_id as the key between these two tables.
TRANSACTIONS:
order_no, // order number
eu_master_doc_id, // end user id
res_master_doc_id, // reseller id
order_date,
mant_end_date,
region,
product
etc.....
TICKETS:
ticket_id,
master_doc_id // it can be end user id or reseller id or both
ticket_open_date,
ticket_soved_date,
etc..
Important Notes:
1. [TRANSACTIONS] : At order line item level eu_master_doc_id, res_master_doc_id can have different or same values
2. [TICKETS]: At ticket_id level master_doc_id can have the value which can be belong to end user id or reseller id or both
Please find the data model below for your reference. My problem is while creating the reports I am getting duplicate data.
It would be a great help.
Please let me know if you need more details.
Thank you!
Samanth
Data Model:
Using the above two tables, I have created the below data model.
Data Model Script:
HI,
Would it be possible for you to provide sample of those two tables, application and calculations you are trying to do. It will help us to help you.
I have a complex data model with more than one fact tables, look up tables, calendar, etc.. As can be seen from screen shot below. My calculations and data model has worked just fine. I've used it in multiple dashboards and for complex calculations.
Hi Vijay,
Thank you very much for your reply.
Please find the attached two CSV files having sample data for two tables TRANSACTIONS, TICKETS.
Please let me know if you need more details.
Note: In future, like TICKETS, I should be able to associate another table 'LEADS'
Regards,
Samanth
HI Samantha,
Would you be able to share your app?
BR,
Vijay
Please find the attached QVW file which I created based on the sample data.
Thanks,
Samanth
Hi Samanth,
Can you please advise how different combination of Zen, EU and Res Master document have to be joined or available to you for performing data analysis/calculation. This is in relation to data you have provided in sample.
Following what I've observed so far and trying to betterunderstand it so I can provide a meaningful DM
Unique Zen Master Doc ID | ||
zen_master_doc_id | Zen Match to EU | Zen Match to Res |
O.22922-392.176366.0-nl | O.22922-392.176366.0-nl | #N/A |
O.80722-250.12444.5-fr | #N/A | #N/A |
O.333096-528.769547.3-nl | O.333096-528.769547.3-nl | O.333096-528.769547.3-nl |
O.333116-528.769547.5-nl | #N/A | O.333116-528.769547.5-nl |
Unique EU and matching it to Zen
eu_master_doc_id | EU Match to Zen |
O.57261-528.113253.0-nl | #N/A |
O.22922-392.176366.0-nl | O.22922-392.176366.0-nl |
O.333096-528.769547.3-nl | O.333096-528.769547.3-nl |
Unique RES and Matching it to Zen
res_master_doc_id | Res Match to Zen |
O.333096-528.769547.3-nl | O.333096-528.769547.3-nl |
O.333116-528.769547.5-nl | O.333116-528.769547.5-nl |
Combination of EU and Res in data set
Distinct Records | |
eu_master_doc_id | res_master_doc_id |
O.57261-528.113253.0-nl | O.333096-528.769547.3-nl |
O.57261-528.113253.0-nl | O.333096-528.769547.3-nl |
O.22922-392.176366.0-nl | O.333096-528.769547.3-nl |
O.57261-528.113253.0-nl | O.333096-528.769547.3-nl |
O.22922-392.176366.0-nl | O.333096-528.769547.3-nl |
O.333096-528.769547.3-nl | O.333116-528.769547.5-nl |
O.333096-528.769547.3-nl | O.333116-528.769547.5-nl |
O.22922-392.176366.0-nl | O.333116-528.769547.5-nl |
O.333096-528.769547.3-nl | O.333096-528.769547.3-nl |
O.333096-528.769547.3-nl | O.333116-528.769547.5-nl |
O.22922-392.176366.0-nl | O.333116-528.769547.5-nl |
O.22922-392.176366.0-nl | O.333116-528.769547.5-nl |
O.22922-392.176366.0-nl | O.333116-528.769547.5-nl |
O.333096-528.769547.3-nl | O.333096-528.769547.3-nl |
O.333096-528.769547.3-nl | O.333096-528.769547.3-nl |
O.22922-392.176366.0-nl | O.333116-528.769547.5-nl |
O.333096-528.769547.3-nl | O.333116-528.769547.5-nl |
O.333096-528.769547.3-nl | O.333116-528.769547.5-nl |
O.22922-392.176366.0-nl | O.333096-528.769547.3-nl |
O.333096-528.769547.3-nl | O.333116-528.769547.5-nl |
O.22922-392.176366.0-nl | O.333116-528.769547.5-nl |
O.333096-528.769547.3-nl | O.333096-528.769547.3-nl |
O.22922-392.176366.0-nl | O.333116-528.769547.5-nl |
O.22922-392.176366.0-nl | O.333116-528.769547.5-nl |
O.22922-392.176366.0-nl | O.333116-528.769547.5-nl |
O.22922-392.176366.0-nl | O.333116-528.769547.5-nl |
O.22922-392.176366.0-nl | O.333116-528.769547.5-nl |
O.22922-392.176366.0-nl | O.333116-528.769547.5-nl |
O.22922-392.176366.0-nl | O.333116-528.769547.5-nl |
O.22922-392.176366.0-nl | O.333116-528.769547.5-nl |
Unique combination of EU and Res from data set
Unique eu res combination | |
eu_master_doc_id | res_master_doc_id |
O.57261-528.113253.0-nl | O.333096-528.769547.3-nl |
O.22922-392.176366.0-nl | O.333096-528.769547.3-nl |
O.333096-528.769547.3-nl | O.333116-528.769547.5-nl |
O.22922-392.176366.0-nl | O.333116-528.769547.5-nl |
O.333096-528.769547.3-nl | O.333096-528.769547.3-nl |
I hope my question is clear to you and makes sense.
BR,
Vijay
Hi Vijay,
Thank you so much for your time.
In our data model, we have two types of customers enduser, reseller.
We have two tables:
(a) TRANSACTIONS: order line items by customers
(b) TICKETS: tickets raised by the customers.
Here is the table having different combinations between EU, RES and ZEN
Dimension 1 | Dimension 2 | Dimension 3 | Dimension 4 | Dimension 5 | Dimension 6 | Dimension 7 | Dimension 8 | |
---|---|---|---|---|---|---|---|---|
EU | country | region | order_fy | order_fq | order_month | maint_fy | maint_fq | maint_month |
RES | country | region | order_fy | order_fq | order_month | maint_ty | maint_fq | maint_month |
ZEN | country | region | ticket_created_fy | ticket_created_fq | ticket_created_month | |||
ZEN | country | region | ticket_solved_fy | ticket_solved_fq | ticket_solved_month | |||
For example, here is my scenario to get better understanding of the requirement:
1. Bookings Value given by customer (eu_master_doc_id/res_master_doc_id) in ordered FY, FQ, Month, Country
2. Along with Ticket Count raised by the same customer in the ticket created FY, FQ, Month, Country
EX:- master_doc_id, FY, FQ, Country, $EU Bookings, $RES Bookings ,#EU Tickets, # RES Tickets
I am not sure whether I have provided the required details to get better understanding.
Please let me know if you need more information.
Thanks,
Samanth
Hi Samantha,
I'll read it once I reach office in about an hour or so. I'll let you know if more information or clarification is required.
I Hope to get it working for you.
BR,
Vijay
Hi Samanth,
Is there a reason EU Doc Id and Res Doc Id are together in same table? Having both of them in same transaction table is making it difficult to tie it to tickets. Also if you were to split them up what data points will gets associated with each of them.
I just created two separate Transaction tables with all fields. If I were to leave eu_master doc_id in res_mst or res_master_doc_id in eu_mst along with actual transaction table then it would create a loop. A loop in data model will cause problems.
With data model I've got you will/may have to use set analysis for certain calculations.
Please see attached QVW file.
Hi Vijay,
Thank you very much for your valuable time spending on this.
Q: Is there a reason EU Doc Id and Res Doc Id are together in same table?
Ans: The only reason is: Both EU and RES are having the common data like order_no, order_dt, bookings_usd, acv_local etc…
There is no problem even if we separate them into two tables by renaming the columns.
I have tested the data model that you have given. It looks very nice.
I tried to get some report by adding date calendar to date fields. But, I am getting the duplicated data like displayed in below report.
Report:
Can you please help me in getting the above report? Based on that, I can derive any other reports.
If we are able to get this kind of report that would be great!
Thanks & Regards,
Samanth