Forum Discussion

Shinyegg's avatar
Shinyegg
Regular Visitor
9 months ago
Solved

Help Needed: Historical Forecast Line Chart in Power BI

    Hi everyone,   I’m trying to build a Power BI line chart that shows historical forecasts.   I need:   12 lines, each representing a forecast version from a different month (Forecast as o...
  • Anonymous's avatar
    Anonymous
    9 months ago

    Hi Shinyegg ,
    Power BI does not support splitting a line chart legend across multiple measures such as Actual, Forecast, and Budget. To address this, it's necessary to reshape the data so these measures are represented as rows instead of columns. In Power Query, unpivot the Actual, Forecast, and Budget columns to create a 'Scenario' column containing Actual, Forecast, and Budget and a single 'Amount' column. Then, define one measure to sum the Amount. For the visualization, place Month on the X-axis, the new measure in Values, and use either Snapshot Date for comparing forecast versions or Scenario for comparing Actual, Budget, and Forecast in the Legend. This approach aligns with Power BI’s data structure requirements and enables correct display of historical forecast lines.