Some field values are duplicating when they are added into Qlik.
I have raw data that looks like so:
|Study Room Program Manager||6000|
|Study Room Assistant||1800|
|Phonebills & Internet Expenses||125|
|Professional Fees - Lawyer & Auditor||1250|
|Public School Supervisors||0|
|Revision & Consulting||0|
|Marketing & Advertising||0|
|Web Fees (Social Media)||1000|
|Study Room Furniture (Two Class rooms & accessories)||0|
|Equipment (Required for bigger premises)|
But for some reason, when uploaded to Qlik, the values are duplicated.
Why is that? I know I can solve the issue using distinct i.e. Sum(distinct [Quarter One Budget]). But I am curious as to why this is happening. Please can someone explain this to me.
Thank you in advance,
From you posted above looks like your Category table is not associated with Data table, so displaying Q1 Budget by Item will most probably cause some duplication. Rather than resolving this by using sum( distinct MeasureName) in the chart itself this should be resolve in your script by re-designing your data model.
How is your data connected?
If you could post a sample app that would be really helpful.
Thank you for your responses, here is the load script:
CROSSTABLE ([Project Budget.Attribute field],[Project Budget.Data field],4)
FROM [lib://Finance Apps/MMKN.xlsx]
(ooxml, embedded labels, table is [Project Budget]);
[Project Budget.Data field] as [Project Budget Amount],
[Item] as [Project Budget Item],
[Y1 Budget] as [Year One Project Budget],
[Q1 Budget] as [Quarter One Budget],
[Q2 Budget] as [Quarter Two Budget],
Date#([Project Budget.Attribute field]) as Date
Resident [Project Budget];
Drop table [Project Budget];
LOAD * INLINE [
Public School Supervisor, Activities
Revision & Consulting, Activities
Marketing & Advertising. Activities
Web Fees (Social Media), Activities
Study Room Furniture (Two Class rooms & accessories), Capital Costs
Equipment(Required for bigger premises), Capital Costs
Study Room Program Manager, Salaries
Study Room Assistance, Salaries
Rent, Overhead Costs
Utilities, Overhead Costs
Generator Expenses, Overhead Costs
Phonebills & Internet Expenses, Overhead Costs
Professional Fees - Lawyer & Auditor, Overhead Costs
Stationary, Overhead Costs
Why Category and Date are not joined in your screenshot? In the small code you share are joined?
Why you have this tables called Data-1, Data-2, etc...?