Forum Discussion

DAXRichArd's avatar
DAXRichArd
Icon for Resolver I rankResolver I
6 years ago
Solved

Power Pivot - Forecast Subtotal not totaling future values

Hello, I'm posting here because I did not see a forum for Power Pivot.   I work with commercial aviation data and I am forcasting passengers. My method is to use a multiplier of 1% (or x 1.01).  ...
  • MFelix's avatar
    MFelix
    6 years ago

    Hi DAXRichArd ,

     

    Believe that the issue now is regarding the paraentheses but need to check the formula.

     

    You can share it trough a onedrive, google drive, we transfer link, if there is sensitive information share it trough private message. Or can you make a mockupfile smaller.

     

    Regards,

    MFelix

  • DAXRichArd's avatar
    DAXRichArd
    6 years ago

    MFelix 

     

    Big thank you. It worked. I hacked at adding SUMX but I didn't know what I was doing. I'm still trying to figure out why your solution works, but I think the bigger picture for me is that it's something to do with context transition and I'm still learning. No matter. I'll keep learning. Big thank you again. You rock! for everyone esle, below is the solution provided to me by MFelix :

     

     

    Original formula (problem was it did not subtotal the forecasted numbers).

     

    Helper Yr 1 IAH 1% :=

     

     

    VAR IAHYr1OnePct =

        CALCULATE (

            Pax[Pax] * 1.01,

            Pax[CAMPUS] = "IAH",

            SAMEPERIODLASTYEAR ( 'Calendar'[Date] )

        )

    RETURN

        CALCULATE (

            IF ( ISBLANK ( Pax[Pax] ), IAHYr1OnePct, Pax[Pax] ),

            Pax[CAMPUS] = "IAH"

        )

     

    SOLUTION:

     

    Helper Yr 1 IAH 1% :=

    SUMX (

        'Calendar',

        VAR IAHYr1OnePct =

            CALCULATE (

                Pax[Pax] * 1.01,

                Pax[CAMPUS] = "IAH",

                SAMEPERIODLASTYEAR ( 'Calendar'[Date] )

            )

        RETURN

            CALCULATE (

                IF ( ISBLANK ( Pax[Pax] ), IAHYr1OnePct, Pax[Pax] ),

                Pax[CAMPUS] = "IAH"

            )

    )