SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


Measure shows incorrect value


Measure shows incorrect value

Author
Message
ps.
ps.
Hall of Fame
Hall of Fame (3.3K reputation)Hall of Fame (3.3K reputation)Hall of Fame (3.3K reputation)Hall of Fame (3.3K reputation)Hall of Fame (3.3K reputation)Hall of Fame (3.3K reputation)Hall of Fame (3.3K reputation)Hall of Fame (3.3K reputation)

Group: General Forum Members
Points: 3289 Visits: 3668
I have a measure that calculates revenue.
There are several partitions to store the sales data. Each partition holding about 10 weeks of data.
I'm coming across a weird issue. There is a view that reads data from the base table into the cube. The view shows correct value of revenue. When I process the partition (I've created a separate partition to track this for the week 201107), it displays correct number of records read. The number of rows in the table is same as the number of rows read during cube process.
The problem is Revenue is different from the what we get after querying the table/view.
To top it all, this issue is present in all weeks prior to 201224. The data in the cube is less than what is present in the base tables.

Anyone came across such scenario?



Pradeep Singh
ps.
ps.
Hall of Fame
Hall of Fame (3.3K reputation)Hall of Fame (3.3K reputation)Hall of Fame (3.3K reputation)Hall of Fame (3.3K reputation)Hall of Fame (3.3K reputation)Hall of Fame (3.3K reputation)Hall of Fame (3.3K reputation)Hall of Fame (3.3K reputation)

Group: General Forum Members
Points: 3289 Visits: 3668
Update:
The actual problem is "Grand Total" is incorrect. This is true even when I do not select any dimension and just the sum of revenue.
However, when I slice it by any time dimension, the sliced data is correct except the grand total.

Looks like AS is ignoring some data. not sure what. The revenue column doenst have any null value though.



Pradeep Singh
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search