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

Announcements
Join us in Toronto Sept 9th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Problem with composite keys /Generic keys

Initially I have the following design

Sans titre.png

To avoid generic keys I create composite keys in both tables Budget and TempSales as follow

"Code Site"&'|'&"Code Structure"&'|'&  'O'&'|'&    Date(Date#([Date Time],'YYYY-MM-DD'),'YYYYMMDD') as BudgetId

Sans titre.png

Now I didn't get the best values of budget , How to resolve it ?

5 Replies
Anonymous
Not applicable
Author

"Code Site"&'|'&"Code Structure"&'|'&  'O'&'|'&    Date(Date#([Date Time],'YYYY-MM-DD'),'YYYYMMDD')

Is your BudgetID unique?

Anonymous
Not applicable
Author

no not unique

Anonymous
Not applicable
Author

Make sure it should be else you may get wrong data as well

Anonymous
Not applicable
Author

how to make it a unique key please ?

Anonymous
Not applicable
Author

For that post some sample data of Budget & TempSales table...