dbTalk Databases Forums  

identical querry with same data, but different results.

microsoft.public.sqlserver.olap microsoft.public.sqlserver.olap


Discuss identical querry with same data, but different results. in the microsoft.public.sqlserver.olap forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
k_s
 
Posts: n/a

Default identical querry with same data, but different results. - 04-25-2005 , 01:36 AM






HI All,

Take a look at the following querries,

SELECT NON EMPTY { [Measures].[Commission] } ON COLUMNS , NON EMPTY {
[Time].[Financial Year].[All Time] } ON ROWS FROM [Commission]

SELECT NON EMPTY { [Measures].[Commission] } ON COLUMNS , NON EMPTY {
[Time].[Financial Year].[All Time] } ON ROWS FROM [Sales]

these are for 2 different cubes. Sales and Commission. In Sales 'Commission'
is stored against "Invoice" and in 'Commission' cube it's against customers.

If I check the sum in sql database from both the tables, it's same (as it
should b), but the querry returns different results. The Commission cube is
right (same as sql querry) but sales cube returns very small amount.

Any idea y's this happening ?

regards,

kshitij.

Reply With Quote
  #2  
Old   
Muhammad Mansoor
 
Posts: n/a

Default Re: identical querry with same data, but different results. - 04-25-2005 , 06:40 AM






The dimensions will be diffrent for both the cubes, thats the reason
you may be getting diffrent results. You will need to join your result
with the other Dimension's Tables in order to get the correct result.


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.