MDX Reference Actual sales with Forecast revision

  • Hi all, hoping some one can help me please with some MDX.

    I have the following simplified structure in a cube, we do forecast revisions during each quarter during the year however we only store the revision data for the remaining periods in the year not the preceding ones as by this point we already have the actuals.

    So what I want is for when a user selects a Version e.g. '2017 Q3 Forecast' we should return the Q3 and Q4 forecast figures along with the Actuals for Q1 and Q2, I'm trying to avoid replicating the Actuals data as its quite large.

    Could someone please provide me with a sample MDX query or point me in the right direction which might achieve this.

    Many thanks in advance!

    VersionKeyVersion
    1Actuals 2017
    2Forecast 2017 Q1
    3Forecast 2017 Q2
    4Forecast 2017 Q3
    5Forecast 2017 Q4

    DateKeyFiscalYearFiscalQuarter
    12017Q1
    22017Q2
    32017Q3
    42017Q4

    VersonKeyDateKeyProductKeyAmount
    111-374
    121-727
    431-423
    441-721
    541-487
  • What is your expected output? What tool are you using to generate this output (SSRS, PowerBI, Tableau etc.)? What MDX have you tried already that has not given you the result that you expect?

    I suspect that what you are trying to do is possible with a SCOPE statement with one of the time navigation functions but when dealing with SSAS seeing the underlying tables is not espectially helpful. Can you provide a little more information?


    I'm on LinkedIn

Viewing 2 posts - 1 through 1 (of 1 total)

You must be logged in to reply to this topic. Login to reply