ID.cnt.dst returns more than 1 for each ID
My goal is to cross check two sources to see if they contain the same, in this case simply the same IDs.
For this purpose, I have created a data model with two fact tables (one for each source, with one or more rows for each ID) and a dimension table (a list of all IDs, without duplicates). The relations have been drawn from the fact tables to the dimension table, on the ID as the key, of the same datatype.
In my analysis, I select the ID as a dimension from the dimension table; and I select the measure ID.cnt.dst from each fact table.
Now, I would expect the analysis to return 1 or 0 depending on whether the ID exists in the respective fact table. However, the analysis returns more than 1 for each ID.
How can ID.cnt.dst return more than 1 for each ID? And how to fix it?
Comments
Hi Niels Kristian,
Hmmm... I would try something like this:
This should give you a nice picture of all the available dimensions - and whether they are part of one fact table or the other.
I have used "Number format" to show blanks as "0" in screenshot.
BR / Ole
Thank you, it did the trick!
What if I would want to cross check more than one dimension, e.g. "person ID" as well as "task ID"?
And may I ask, what it is logic behind using Source*?
To check "task ID" just follow the same principles:
Source* in itself is a auto-generated dimension with names of all sources (tables) that it used to design your cube. The Source*.cnt is just a handy way of counting " how many times does the source contain/relate to the chosen dimension member". In my example, I could have used No.3.cnt.dst to achieve the same result by counting "how many times does a dimension member appear for each source".
BR / Ole
Please sign in to leave a comment.