Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Level up your Power BI skills this month - build one visual each week and tell better stories with data! Get started

Reply
Ignite190
Frequent Visitor

Requirement: Line chart with Actual + multiple Forecast Versions (dynamic) from different tables

Hi everyone,
I’m looking for guidance on a Power BI limitation / workaround for a line chart scenario.

Business requirement

I need to visualize:

  • Actual consumption data
  • Multiple forecast versions (e.g., V1, V2, Latest, Approved, etc.)
    on the same line chart for comparison over time.

The expected outcome is:

  • One line for Actual
  • Multiple lines for Forecast, one per Forecast Version
  • Forecast Versions are dynamic (not fixed, new ones can appear)
  • A Legend driven by Forecast Version showing multiple forecast lines at once

This is a standard forecasting comparison use case.


Current data model

  • Actual data comes from Table A
  • Forecast data comes from Table B
  • Forecast table has a column: Forecast Version
  • Actual and Forecast are not in the same table
  • I already have separate, correct DAX measures:
    • Actual Consumption
    • Forecast Consumption

Problem / limitation

  • As soon as I put Actual Consumption and Forecast Consumption together in the Y‑axis, Power BI disables the Legend
  • Because of this:
    • I cannot place Forecast Version in the Legend
    • I cannot show multiple forecast lines together dynamically
  • I understand this is because Power BI doesn’t support Legend + multiple measures in Values

    Is there any supported or recommended way in Power BI to achieve this ?

1 ACCEPTED SOLUTION
danextian
Super User
Super User

Hi @Ignite190 

Line charts in Power BI allow either multiple measures (series) as a legend or categories from a column. That said, is to use a disconnected with a column the actual measure name and the forecast version and reference this column in  a measure. Then use the original version column as a slicer.

danextian_0-1776074475097.png

danextian_1-1776074585831.gif

Please see the attached pbix.

 





Dane Belarmino | Microsoft MVP | Proud to be a Super User!

Did I answer your question? Mark my post as a solution!


"Tell me and I’ll forget; show me and I may remember; involve me and I’ll understand."
Need Power BI consultation, get in touch with me on LinkedIn or hire me on UpWork.
Learn with me on YouTube @DAXJutsu or follow my page on Facebook @DAXJutsuPBI.

View solution in original post

5 REPLIES 5
danextian
Super User
Super User

Hi @Ignite190 

Line charts in Power BI allow either multiple measures (series) as a legend or categories from a column. That said, is to use a disconnected with a column the actual measure name and the forecast version and reference this column in  a measure. Then use the original version column as a slicer.

danextian_0-1776074475097.png

danextian_1-1776074585831.gif

Please see the attached pbix.

 





Dane Belarmino | Microsoft MVP | Proud to be a Super User!

Did I answer your question? Mark my post as a solution!


"Tell me and I’ll forget; show me and I may remember; involve me and I’ll understand."
Need Power BI consultation, get in touch with me on LinkedIn or hire me on UpWork.
Learn with me on YouTube @DAXJutsu or follow my page on Facebook @DAXJutsuPBI.
cengizhanarslan
Super User
Super User

Step 1) Create a unified calculated table in DAX

CombinedTable =
UNION (
    SELECTCOLUMNS (
        TableA,
        "Date",   TableA[Date],
        "Value",  TableA[Value],
        "Series", "Actual"
    ),
    SELECTCOLUMNS (
        TableB,
        "Date",   TableB[Date],
        "Value",  TableB[Value],
        "Series", TableB[Forecast Version]
    )
)

 

Step 2) Create a single measure

Consumption =
SUM ( CombinedTable[Value] )

 

Step 3) Configure the line chart

  • X axis: Date
  • Y axis: Consumption
  • Legend: Series

 

Step 4) Connect CombinedTable to your Date table

Modeling tab → Manage Relationships → create a relationship between CombinedTable[Date] and your Date table

_________________________________________________________
If this helped, ✓ Mark as Solution | Kudos appreciated
Connect on LinkedIn | Follow on Medium
AI-assisted tools are used solely for wording support. All conclusions are independently reviewed.
Kedar_Pande
Super User
Super User

@Ignite190 

Create Table:

Combined Data = 
UNION(
SELECTCOLUMNS(TableA, "Date", TableA[Date], "Version", "Actual", "Value", TableA[Consumption]),
ADDCOLUMNS(
TableB,
"Version", TableB[Forecast Version],
"Date", TableB[Date],
"Value", TableB[ForecastConsumption]
)
)

Combined[Date] → DateTable[Date]

 

Measure:

Consumption Value = 
SUM(Combined Data[Value])

Line Chart:

X-axis: Date

Y-axis: Consumption Value

Legend: Version (Actual + all dynamic forecasts)

 

MFelix
Super User
Super User

Hi @Ignite190 ,

 

Create a new table with a line saying actuals and the versions fo your forecasts v1, v2 and só on. For this to BE dynamoc you can use Power query or dax.

 

Then add a new measure similar to this One

 

Atual + forecasts = 

IF(SELECTEDVALUE(Newtable[columname]), [Actual], CALCULATE([Forecast]), Forecastable[Forecast] = SELECTEDVALUE (Newtable[Columname])))

 

Then you can use this measure on the values and the column from the new table has Legend.

 


Regards

Miguel Félix


Did I answer your question? Mark my post as a solution!

Proud to be a Super User!

Check out my blog: Power BI em Português





grazitti_sapna
Super User
Super User

Hi @Ignite190,

 

CAn be achived by appending both tables together and then using them in Line chart.

 

I've created a sample .pbix file for you. Hope this is what you require.

 

🌟 I hope this solution helps you unlock your Power BI potential! If you found it helpful, click 'Mark as Solution' to guide others toward the answers they need.
💡 Love the effort? Drop the kudos! Your appreciation fuels community spirit and innovation.
🎖 As a proud SuperUser and Microsoft Partner, we’re here to empower your data journey and the Power BI Community at large.
🔗 Curious to explore more? [Discover here].
Let’s keep building smarter solutions together!

Helpful resources

Announcements
April Power BI Update Carousel

Power BI Monthly Update - April 2026

Check out the April 2026 Power BI update to learn about new features.

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.