EducationSoftwareStrategy.com
StrategyCommunity

Knowledge Base

Product

Community

Knowledge Base

TopicsBrowse ArticlesDeveloper Zone

Product

Download SoftwareProduct DocumentationSecurity Hub

Education

Tutorial VideosSolution GalleryEducation courses

Community

GuidelinesGrandmastersEvents
x_social-icon_white.svglinkedin_social-icon_white.svg
Strategy logoCommunity

© Strategy Inc. All Rights Reserved.

LegalTerms of UsePrivacy Policy
  1. Home
  2. Topics

KB35385: Reports using Dynamic Sourcing do not hit the Intelligent Cube when using the NullToZero function in MicroStrategy 9.4.x.-10.x


Stefan Zepeda

Salesforce Solutions Architect • Strategy


Reports using Dynamic Sourcing do not hit the Intelligent Cube when using the NullToZero function in MicroStrategy 9.4.x.-10.x.

SYMPTOM:
Reports using Dynamic Sourcing do not hit the Intelligent Cube when using the NullToZero function in Strategy 9.4.x.-10.x.
 
STEPS TO REPRODUCE:
1. Create a Cube with following objects:
• Year as Attribute
• Category as Attribute
• Profit as Metric
• Report Filter: Year in list (2009)

ka02R000000kaR6QAI_0EM440000002Doz.jpeg

 
2. Publish the Cube.
3. Create a Report with the following objects:
• Year as Attribute
• Category as Attribute
• Profit as Metric
• Report Filter: Year in list (2009)

ka02R000000kaR6QAI_0EM440000002Dp5.jpeg

 
4. Run Report in SQL View. You can see that the report uses the cube as source:

ka02R000000kaR6QAI_0EM440000002Dox.jpeg

 
5. Modify the “Profit” Metric. Add the NullToZero-Function to the metric definition:

ka02R000000kaR6QAI_0EM440000002Dp1.jpeg

 
6. Delete the Cache for Cube in Administration\Caches\Intelligent Cubes:

ka02R000000kaR6QAI_0EM440000002Dov.jpeg

 
7. Publish the Intelligent Cube again.
8. Purge the Report Cache for the Report:

ka02R000000kaR6QAI_0EM440000002Dp2.jpeg

 
9. Run the Report in SQL View. You can see that the report uses the data warehouse table as source and not the cube:

ka02R000000kaR6QAI_0EM440000002Dp3.jpeg

 
10. If you change the metric to the original metric definition, delete cache from the cube, publish the cube, purge the Report Cache and run the report in the SQL view again, you will see that the report uses the cube as source:

ka02R000000kaR6QAI_0EM440000002DpF.jpeg
ka02R000000kaR6QAI_0EM440000002Jva.jpeg

 
 
CAUSE:
This represents a known issue with Strategy 9.4.x.-10.x. The use of the NullToZero function in a metric definition is not currently supported for use with an Intelligent Cube.
 
WORKAROUND:
A separate metric can be created for use with the Intelligent Cube which does not contain the nested function:
Cube's metric: Sum(fact1){~+}
Report's metric: NullToZero(Sum(fact1){~+})
It is also possible to use the Cube Advisor application which would suggest an Intelligent Cube with a Sum(fact1){~+} metric to serve the report.
 
ACTION:
Please post to the Ideas Exchange for this feature to be implemented in future releases.
https://success.Strategy.com/s/topic/0TO44000000Flk1GAC/Other%20MDX%20(OLAP%20Cubes)%20-%20U101?t=1493044276788&tabset-215d6=4aa55


Comment

0 comments

Details

Knowledge Article

Published:

April 24, 2017

Last Updated:

April 24, 2017