dbTalk Databases Forums  

Re: Cannot drillthough with empty cells

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


Discuss Re: Cannot drillthough with empty cells in the microsoft.public.sqlserver.olap forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Akshai Mirchandani [MS]
 
Posts: n/a

Default Re: Cannot drillthough with empty cells - 02-16-2005 , 02:35 PM






I'm guessing this is because AS2k converts NULL values to 0s and when it
does a drillthrough into the relational database, it will put the condition
with [Promotion Media] = 0 instead of [Promotion Media] IS NULL.

You could change the member key to be a calculated SQL expression like
COALESCE( [Promotion Media], 0 ). This may work...

Thanks,
Akshai
--
This posting is provided "AS IS" with no warranties, and confers no rights
Please do not send email directly to this alias. This alias is for newsgroup
purposes only.

"Desmon" <desmon (AT) netcourrier (DOT) com> wrote

Quote:
When I try to drillthrough into a cube where a cell is empty. The
resultset returned is always empty.
For example on the "foodmart 2000/sales" cube the following MDX query
returns nothing :
DRILLTROUGH MAXROWS 100 SELECT FROM Sales WHERE ([Promotion
Media].[All Media].[])
However I have several lines in the "foodmart 2000/sales" cube with a
NULL [Promotion Media].

Does anyone know how to drillthough onto empty cells?

Regards

Jean-Michel DESMON
VALMONT



Reply With Quote
  #2  
Old   
Desmon
 
Posts: n/a

Default Re: Cannot drillthough with empty cells - 02-17-2005 , 01:37 AM






Thanks but I would like to find a global fix. Because I have the
problem for [Promotion Media] and also for ALL others fields in ALL my
cubes where there is NULL value . With your fix I have to update all
calculated SQL expression in all my dimensions for ALL my cubes.

Any idea?

JMD

"Akshai Mirchandani [MS]" <akshaim (AT) online (DOT) microsoft.com> wrote

Quote:
I'm guessing this is because AS2k converts NULL values to 0s and when it
does a drillthrough into the relational database, it will put the condition
with [Promotion Media] = 0 instead of [Promotion Media] IS NULL.

You could change the member key to be a calculated SQL expression like
COALESCE( [Promotion Media], 0 ). This may work...

Thanks,
Akshai
--
This posting is provided "AS IS" with no warranties, and confers no rights
Please do not send email directly to this alias. This alias is for newsgroup
purposes only.

"Desmon" <desmon (AT) netcourrier (DOT) com> wrote in message
news:1502f457.0502160134.33c19378 (AT) posting (DOT) google.com...
When I try to drillthrough into a cube where a cell is empty. The
resultset returned is always empty.
For example on the "foodmart 2000/sales" cube the following MDX query
returns nothing :
DRILLTROUGH MAXROWS 100 SELECT FROM Sales WHERE ([Promotion
Media].[All Media].[])
However I have several lines in the "foodmart 2000/sales" cube with a
NULL [Promotion Media].

Does anyone know how to drillthough onto empty cells?

Regards

Jean-Michel DESMON
VALMONT

Reply With Quote
  #3  
Old   
Desmon
 
Posts: n/a

Default Re: Cannot drillthough with empty cells - 02-17-2005 , 01:38 AM



Thanks but I would like to find a global fix. Because I have the
problem for [Promotion Media] and also for ALL others fields in ALL my
cubes where there is NULL value . With your fix I have to update all
calculated SQL expression in all my dimensions for ALL my cubes.

Any idea?

JMD



"Akshai Mirchandani [MS]" <akshaim (AT) online (DOT) microsoft.com> wrote

Quote:
I'm guessing this is because AS2k converts NULL values to 0s and when it
does a drillthrough into the relational database, it will put the condition
with [Promotion Media] = 0 instead of [Promotion Media] IS NULL.

You could change the member key to be a calculated SQL expression like
COALESCE( [Promotion Media], 0 ). This may work...

Thanks,
Akshai
--
This posting is provided "AS IS" with no warranties, and confers no rights
Please do not send email directly to this alias. This alias is for newsgroup
purposes only.

"Desmon" <desmon (AT) netcourrier (DOT) com> wrote in message
news:1502f457.0502160134.33c19378 (AT) posting (DOT) google.com...
When I try to drillthrough into a cube where a cell is empty. The
resultset returned is always empty.
For example on the "foodmart 2000/sales" cube the following MDX query
returns nothing :
DRILLTROUGH MAXROWS 100 SELECT FROM Sales WHERE ([Promotion
Media].[All Media].[])
However I have several lines in the "foodmart 2000/sales" cube with a
NULL [Promotion Media].

Does anyone know how to drillthough onto empty cells?

Regards

Jean-Michel DESMON
VALMONT

Reply With Quote
  #4  
Old   
Akshai Mirchandani [MS]
 
Posts: n/a

Default Re: Cannot drillthough with empty cells - 02-17-2005 , 01:30 PM



No, I'm not aware of a global fix. Unfortunately NULLs are always difficult
to handle... In general it would be avoidable to keep NULLs in the fact
table -- it's much better to create a key for the unknown members in the
dimension and replace all the NULL values with that key...

Thanks,
Akshai
--
This posting is provided "AS IS" with no warranties, and confers no rights
Please do not send email directly to this alias. This alias is for newsgroup
purposes only.

"Desmon" <desmon (AT) netcourrier (DOT) com> wrote

Quote:
Thanks but I would like to find a global fix. Because I have the
problem for [Promotion Media] and also for ALL others fields in ALL my
cubes where there is NULL value . With your fix I have to update all
calculated SQL expression in all my dimensions for ALL my cubes.

Any idea?

JMD

"Akshai Mirchandani [MS]" <akshaim (AT) online (DOT) microsoft.com> wrote

I'm guessing this is because AS2k converts NULL values to 0s and when it
does a drillthrough into the relational database, it will put the
condition
with [Promotion Media] = 0 instead of [Promotion Media] IS NULL.

You could change the member key to be a calculated SQL expression like
COALESCE( [Promotion Media], 0 ). This may work...

Thanks,
Akshai
--
This posting is provided "AS IS" with no warranties, and confers no
rights
Please do not send email directly to this alias. This alias is for
newsgroup
purposes only.

"Desmon" <desmon (AT) netcourrier (DOT) com> wrote in message
news:1502f457.0502160134.33c19378 (AT) posting (DOT) google.com...
When I try to drillthrough into a cube where a cell is empty. The
resultset returned is always empty.
For example on the "foodmart 2000/sales" cube the following MDX query
returns nothing :
DRILLTROUGH MAXROWS 100 SELECT FROM Sales WHERE ([Promotion
Media].[All Media].[])
However I have several lines in the "foodmart 2000/sales" cube with a
NULL [Promotion Media].

Does anyone know how to drillthough onto empty cells?

Regards

Jean-Michel DESMON
VALMONT



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.