question

Jansky avatar image
Jansky asked

Why does my OLAP Cube SUM measure always show the same result?

So I'm working on an SSIS OLAP data cube. During the cube setup wizard I originally set up a count measure that counts the number of 'attendance marks'. If I query this I can see the overall number, and then drill down to finer numbers by querying it via other dimensions such as 'full name'. Now after creating the cube I want to create another measure, a sum of a field that can be either 1 or 0, which is a calculated field in the data source view. I do this by adding a new measure through the 'cube structure' tab- selecting usage 'sum', the source table and then highlighting the column I wish to sum in the source column list. This new measure seems to work initially, but the issue comes up when I add another dimension to query the measure, drilling down to more detail. It displays the full sum from the entire system for every entry in the dimension. This is as opposed to the first measure that displays the results from within the scope of that dimension- so it shows the number of attendance marks that are linked to a Full Name, whereas this new measure shows it's sum of the total values in the system- not those within the scope of the Full Name. This was a bit awkward to explain, as is often the case with multi-dimensional problems! So does anyone know why this doesn't work? Am I missing something in my measure setup?
ssasmdxcubeolap
10 |1200 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

· Write an Answer
Pavel Pawlowski avatar image
Pavel Pawlowski answered
It looks like you have added the new measure into new Measure Group. Ff it is so, check the Dimension Usage tab of the cube designer and check that your dimensions are connected to the new Measure Group properly. Also if the measure is in separate measure group, you can drop this measure adn create it in existing measure gorup.
1 comment
10 |1200 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Totally right, my relationships were setup wrong. Ultimately I fixed it by moving the calculated field to my Fact table rather than the Dimension table, removing the new measure group. Thanks very much Pavel
0 Likes 0 ·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.