Forum Discussion

RJPK's avatar
RJPK
New Member
6 years ago
Solved

creating forecast based on 1 month

Hi,   I'm fairly new to powerBI and i'm struggling to get the correct P&L visual for my forecast. The ultimate goal is to make a forecast for a new company. As there is no reference data except f...
  • RJPK's avatar
    RJPK
    6 years ago

    Hi Icey,

     

    When creating the dummy data i discovered my error!

     

    I noticed this when i created the matrix in the dummy file which would not show any months past March.

    The error was in this part:

    SUMMARIZE('Calendar';'Calendar'[MonthNameShort];
        "LASTMTD";IF(MONTH(MAX('fact'[boekingsdatum]))>MAxMonth;CALCULATE([ReportingBedrag AC];ALL('Calendar'[Date]);MONTH('Calendar'[Date])=MaxMonth);[Reporting bedrag MTD AC]))

     

    Right after the first IF i refer to the "fact" table date. This only runs up to March so i need to pick the mastercalender table here like so:

    SUMMARIZE('Calendar';'Calendar'[MonthNameShort];
        "LASTMTD";IF(MONTH(MAX('Calendar'[Date]))>MAxMonth;CALCULATE([ReportingBedrag AC];ALL('Calendar'[Date]);MONTH('Calendar'[Date])=MaxMonth);[Reporting bedrag MTD AC]))

     

    Now i get all details, correct row totals and correct grand total!