dbTalk Databases Forums  

Can I know type of cell programmatically? (calculated/derived)

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


Discuss Can I know type of cell programmatically? (calculated/derived) in the microsoft.public.sqlserver.olap forum.



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

Default Can I know type of cell programmatically? (calculated/derived) - 07-18-2003 , 11:46 AM







Hi,

Is there a way to know the type of cell I am querying? In the sense, is
it possible via MDX or XML/A to know if the cell is of calculated or
derived type?

thanks
Anand

--
Posted via http://dbforums.com

Reply With Quote
  #2  
Old   
Mosha Pasumansky [MS]
 
Posts: n/a

Default Re: Can I know type of cell programmatically? (calculated/derived) - 07-18-2003 , 04:54 PM






What is your definition of "calculated" cell vs. "derived" cell ? Why would
you want to know the difference ?

--
==================================================
Mosha Pasumansky - www.mosha.com/msolap
Development Lead in the Analysis Server team
All you need is love (John Lennon)
Disclaimer : This posting is provided "AS IS" with no warranties, and
confers no rights.
==================================================
"anand_h" <razurfish (AT) yahoo (DOT) com> wrote

Quote:
Hi,

Is there a way to know the type of cell I am querying? In the sense, is
it possible via MDX or XML/A to know if the cell is of calculated or
derived type?

thanks
Anand

--
Posted via http://dbforums.com



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

Default Re: Can I know type of cell programmatically? (calculated/derived) - 07-20-2003 , 10:38 PM




No, I am not looking for the difference.
All I want to know is that the cell should be a real-physical cell on
which I can perform the DRILLTHROUGH. I understand that the
calculated/derived cells don't support DRILLTHROUGH.

Is there any way to know this?
Thanks
Anand

--
Posted via http://dbforums.com

Reply With Quote
  #4  
Old   
Mosha Pasumansky [MS]
 
Posts: n/a

Default Re: Can I know type of cell programmatically? (calculated/derived) - 07-21-2003 , 03:15 PM



Quote:
No, I am not looking for the difference.
All I want to know is that the cell should be a real-physical cell on
which I can perform the DRILLTHROUGH. I understand that the
calculated/derived cells don't support DRILLTHROUGH.

Is there any way to know this?
Yes, there is a cell property called IS_DRILLTHROUGH_ENABLED, which you can
query to find out whether DRILL THOURGH will suceed on that cell (it can
fail for other reasons, like security for example).

--
==================================================
Mosha Pasumansky - www.mosha.com/msolap
Development Lead in the Analysis Server team
All you need is love (John Lennon)
Disclaimer : This posting is provided "AS IS" with no warranties, and
confers no rights.
==================================================




Reply With Quote
  #5  
Old   
anand_h
 
Posts: n/a

Default Re: Can I know type of cell programmatically? (calculated/derived) - 07-23-2003 , 12:38 AM




Mosha,
I am aware of IS_DRILLTRHOUGH_ENABLED for the Cube (using
MDSCHEMA_CUBES)..and if I understood you correctly, you are saying
something similar is also available for a Cell...so How do I get it for
a Cell? What would be the type of query like?

Please let me know.
thanks
Anand

--
Posted via http://dbforums.com

Reply With Quote
  #6  
Old   
Mosha Pasumansky [MS]
 
Posts: n/a

Default Re: Can I know type of cell programmatically? (calculated/derived) - 07-23-2003 , 06:51 PM



Quote:
Mosha,
I am aware of IS_DRILLTRHOUGH_ENABLED for the Cube (using
MDSCHEMA_CUBES)..and if I understood you correctly, you are saying
something similar is also available for a Cell...so How do I get it for
a Cell? What would be the type of query like?
Anand,

You are right. I was sure that there is a cell property to determine whether
or not cell can be drilled through, but it is not there.

--
==================================================
Mosha Pasumansky - www.mosha.com/msolap
Development Lead in the Analysis Server team
All you need is love (John Lennon)
Disclaimer : This posting is provided "AS IS" with no warranties, and
confers no rights.
==================================================




Reply With Quote
  #7  
Old   
anand_h
 
Posts: n/a

Default Re: Can I know type of cell programmatically? (calculated/derived) - 07-24-2003 , 04:40 AM




Mosha,

I think I figured out a way to know the Calculated measures.
I issue a MDSCHEMA_MEASURES RequestType and watch for <EXPRESSION> tag
in the returnd rowsets for the measures. The tag is present for the
calculated members, and is absent for the others.

I verified the list I got using XML/A with the list of calculated
members shown by the MS Analysis Manager and they matched.

Anand

--
Posted via http://dbforums.com

Reply With Quote
  #8  
Old   
Mosha Pasumansky [MS]
 
Posts: n/a

Default Re: Can I know type of cell programmatically? (calculated/derived) - 07-24-2003 , 04:13 PM



Quote:
I think I figured out a way to know the Calculated measures.
I issue a MDSCHEMA_MEASURES RequestType and watch for <EXPRESSION> tag
in the returnd rowsets for the measures. The tag is present for the
calculated members, and is absent for the others.
Anand,

This is very unsafe thing to do. It would miss many other cases (calculated
members which are not measures is one obvious example). If your goal is to
discover when DRILLTHROUGH will work, the closest I can think of would be
UPDATEABLE cell property. All the calculated cells are both not updateable
and not drill through'able. However, there still will be cells which are
updateable but not drill through'able and vice versa.

HTH,
Mosha

--
==================================================
Mosha Pasumansky - www.mosha.com/msolap
Development Lead in the Analysis Server team
All you need is love (John Lennon)
Disclaimer : This posting is provided "AS IS" with no warranties, and
confers no rights.
==================================================




Reply With Quote
  #9  
Old   
anand_h
 
Posts: n/a

Default Re: Can I know type of cell programmatically? (calculated/derived) - 07-28-2003 , 03:11 AM




Yes Mosha, agree with you.
It's quite a dangerous way of concluding things
Looks like there's no known method of knowing this thing.
regards
Anand

--
Posted via http://dbforums.com

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.