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

KB45920: Incremental refresh report with Update only and filter option couldn't update cube-based report after made modification to attribute ID form in warehouse in MicroStrategy 9.x - 10.x


Community Admin

• Strategy


The following knowledge base article describes an issue trying to "Update only" with incremental refresh of Intelligent Cubes. A workaround is provided.

SYMPTOM:
In Strategy 9.x - 10.x, Incremental refresh report with Update only and filter option couldn't update cube-based report after made modification to attribute ID form in warehouse
 
REPRODUCING STEPS IN TUTORIAL PROJECT:
Pre-requisite: Need modify one record in LU_CUSTOMER table in tutorial Access database to reproduce the issue.
 
     1.    Original CUST_BIRTH_DATE for Aaby Alen in  LU_CUSTOMER table in tutorial Access database is shown below:


Customer ID: 7796 Customer_Last_Name:Aaby , Customer_First_Name:Alen Customer_Birth_Date:12/19/1939(1.LU_CUSTOMER_birth date_orginal)

 

ka04W000000Oh9UQAS_0EM4400000029MG.png

 
 
     2.    Create a report called IR_Test_Report with Attribute Customer, Customer Birth Date and Metric Cost and Profit on template, with a filter qualifying on Customer (ID) exactly 7796 as shown below:
 

ka04W000000Oh9UQAS_0EM4400000029MK.png

 
     3.    Convert the report to the cube called IR_TEST_CUBE as shown below:
 

ka04W000000Oh9UQAS_0EM4400000029M5.png

 
     4.    Right mouse click on the intelligent cube, and define Incremental Refresh report called IR_Test_Cube_Report with "update only" and advanced default filter option as shown below:
 

ka04W000000Oh9UQAS_0EM4400000029MA.png

 
     5.    Create a cube based report called R1, running the report, it shows the Customer Birth Date as below:
12/19/1939
 

ka04W000000Oh9UQAS_0EM4400000029Ly.png

 
 
     6.    In Access WH, change the birthdate of Mr.Aaby from “12/19/1939” to "12/19/1989" in LU_CUSTOMER table as shown below:
 

ka04W000000Oh9UQAS_0EM4400000029MI.png

 
     7.    Run the Incremental Refresh report IR_Test_Cube_Report, and it shows cube IR_TEST_CUBE has been refreshed.
 

ka04W000000Oh9UQAS_0EM4400000029ME.png

 
SQL Statements runs properly as shown below.
 


 


SQL Statements:
Pass0 -             Query Execution:           0:00:00.01
            Data Fetching and Processing:  0:00:00.00
             Data Transfer from Datasource(s):       0:00:00.00
            Other Processing:         0:00:00.04
            Rows selected: 1
select   a11. AS CUSTOMER_ID,
            max(a12.) AS CUST_LAST_NAME,
            max(a12.) AS CUST_FIRST_NAME,
            a12. AS CUST_BIRTHDATE,
            sum(a11.) AS WJXBFS1,
            sum((a11. - a11.)) AS WJXBFS2
from             a11,
                      a12
where    a11. = a12.
and      a11. = 7796
group by           a11.,
            a12.
Pass1 -             Query Execution:           0:00:00.00
            Data Fetching and Processing:  0:00:00.00
              Data Transfer from Datasource(s):       0:00:00.00
            Other Processing:         0:00:00.03

 
 
 
     8.    Check the "Preview data" of Incremental Refresh report IR_Test_Cube_Report, Notice the Customer Birth Date shows 12/19/1989 which is correct.
 

ka04W000000Oh9UQAS_0EM4400000029M7.png

 
     9.    But run the cube based report R1 again, the Customer Birth Date still shows 12/19/1939. It should be "12/19/1989". It looks like data has not been updated.
 

ka04W000000Oh9UQAS_0EM4400000029M0.png

 
SQL view shows access the cube properly.
 


 


Intelligent Cubes Accessed:
Intelligent Cube SQL Statements:
Pass0 -             Duration: 0:00:00.00
 
select   @,
            @,
            @,
            @,
            ,
           
from     IR_Test_Cube

 
CAUSE:
This is working as designed.
For incremental refresh, Attribute ID is being matched.
 
 “Custom_Birth” column has been changed in warehouse, and this column is mapping to the ID of attribute Customer Birth Data. When “Update” is performed , there is no record about the new Customer Birth ID, therefore, there is no way to update the cube data.
 
WORKAROUND:
Modify the incremental refresh report by replacing the refresh type “Update only” with “Update” and execute it.

ka04W000000Oh9UQAS_0EM4400000029MD.png

 
The result for R1 is updated with both original and new data.
 

ka04W000000Oh9UQAS_0EM4400000029M3.png

 
After republishing the cube, R1 will return the latest data.


Comment

0 comments

Details

Knowledge Article

Published:

June 1, 2017

Last Updated:

June 1, 2017