Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
My problem:
Please let me know what should be a right approach.
Attached is one solution, assuming I understood the question (doubtful). For future questions, it's much easier to answer your question if YOU provide the script to generate a data model. Also, then you don't have to deal with mistakes people make trying to guess your data model.
Attached is one solution, assuming I understood the question (doubtful). For future questions, it's much easier to answer your question if YOU provide the script to generate a data model. Also, then you don't have to deal with mistakes people make trying to guess your data model.
Thanks John,
This was exactly what i was looking for...Now are the Syn tables ok in a model?
parpatra wrote:are the Syn tables ok in a model?
People are often told to remove synthetic keys because when you're new to QlikView or data modeling, synthetic keys typically appear by accident and as a result of data model problems. Removing synthetic keys is at least educational, and often resolves the underlying data model problem as well. But they aren't in and of themselves bad. If it is appropriate to connect two tables together by two or more fields, it is appropriate to use a synthetic key.
In this case, I'm connecting the Transactions and Plans tables together. The level at which those two tables can be compared is at the branch and month level. So connecting those tables together by branch and month seems correct to me, at least without knowing even more about the data. If so, that would make this an appropriate use of a synthetic key, so it shouldn't cause any problems, and should be considered the preferred way of modeling the connection.