Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 1081201
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T22:08:20+00:00 2026-05-16T22:08:20+00:00

I have a cube with a typical snapshot structure and daily granularity (like inventory

  • 0

I have a cube with a typical snapshot structure and daily granularity (like inventory quantities). I would like to be able to remove some of the granular data from this cube, because we have something like 270,000,000 rows of source data, cube processing is slow, and there isn’t a meaningful difference from one data point to the next, at the day level.

However, users want a graduated level of detail – daily detail for the recent past, then monthly or quarterly for older periods. Doing that would help the situation BUT – they also want charts that “appear” to show data for each data point and not have “holes” between one data point and the next.

So here’s the question: if I have a cube with a snapshot fact table, and the table has daily values for the most recent 30 days, then monthly values for 6 months, then quarterly values for two years prior, is there any sane way to make output from the cube “spoof” the gaps, by repeating the last snapshot value for each “empty” day? In other words, if I deliver a chart over the whole time period, I want it to have plateaus that repeat the last non empty value across each gap in the data, but without incurring the storage penalty of keeping all those values.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-16T22:08:21+00:00Added an answer on May 16, 2026 at 10:08 pm

    I am close on this. Came up with the following type of recursive expression, which seems to work (mostly). Tried to substitute in the ClosingPeriod() function to tidy it up, but that bit doesn’t work:

    /* Works! */
    with member Measures.lastEstatementsCount as 
    iif( 
        isleaf( [Date].[Calendar].currentmember ),
    
        iif(
            isempty([Measures].[_Add E Statements Count]),
            ( [Date].[Calendar].prevmember, Measures.[lastEstatementsCount] ),
            Measures.[_Add E Statements Count]
        ),
    
        ( 
            ( tail( descendants( [Date].[Calendar].currentmember ) ) ).item(0), 
                Measures.[lastEstatementsCount] 
        )
    )
    select 
        Measures.lastEstatementsCount on columns,
        [Date].[Calendar].[Month Name] on rows
    from [EngagedMember];
    
    
    /* Substituting ClosingPeriod() in the recursion doesn't for some reason */
    with member Measures.lastEstatementsCount as 
    iif( 
        isleaf( [Date].[Calendar].currentmember ),
    
        iif(
            isempty([Measures].[_Add E Statements Count]),
            ( [Date].[Calendar].prevmember, Measures.[lastEstatementsCount] ),
            Measures.[_Add E Statements Count]
        ),
    
        ( 
            ClosingPeriod( [Date].[Calendar].[Date], [Date].[Calendar].currentmember ), 
                Measures.[lastEstatementsCount] 
        )
    )
    select 
        Measures.lastEstatementsCount on columns,
        [Date].[Calendar].[Month Name] on rows
    from [EngagedMember];
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a cube in ThreeJS and I would like to rotate it 90
I have a cube map texture in OpenGL, and I'd like to render one
I have a line (actually a cube) going from (x1,y1,z1) to (x2,y2,z2). I would
I have a cube which I want to restrict users to only be able
I have a cube that I have build that has data across multiple servers.
I have a cube that has a dimension that is roughly 100,000 rows. It
I have a cube which I want to rotate. I also have a light
I have created a cube in Sql Server Analysis Service. I have a table
I have created a cube that worked fine when deploying. After a added another
I have a ball moving inside a cube, and I detect when it goes

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.