Forum Discussion

CraigMoran's avatar
CraigMoran
New Member
5 years ago
Solved

Forecast modeling for Financials

I have actuals coming in to my model each month. I also have a forecast for the remiander of the year. How can I build a equation that will work in power BI like I have in excel.   =($AE56-SUM($S56...
  • v-kkf-msft's avatar
    v-kkf-msft
    5 years ago

    Hi CraigMoran ,

     

    Not clear your model, I created the following sample data and measure. Does this match your expected output?

     

    Measure = 
    CALCULATE(
        SUM('Table'[Amount]),
        ALLEXCEPT( 'Table', 'Table'[Type] )
    ) - CALCULATE(
            SUM('Table'[Amount]),
            FILTER( ALL('Table'), 'Table'[Type] = MAX('Table'[Type]) && 'Table'[Date] < MIN('Table'[Date]) )
        ) * SUM('Table'[Value%]) / CALCULATE(
                SUM('Table'[Value%]),
                FILTER( ALL('Table'), 'Table'[Type] = MAX('Table'[Type]) && 'Table'[Date] >= MIN('Table'[Date]) )
            )


    If the problem is still not resolved, please provide detailed error information or the expected result you expect. Let me know immediately, looking forward to your reply.

    Best Regards,
    Winniz

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.