This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. We're covering it all. You won't want to miss it.
Learn moreLevel up your Power BI skills this month - build one visual each week and tell better stories with data! Get started
Hi everyone,
I’m looking for guidance on a Power BI limitation / workaround for a line chart scenario.
I need to visualize:
The expected outcome is:
This is a standard forecasting comparison use case.
Is there any supported or recommended way in Power BI to achieve this ?
Solved! Go to Solution.
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.
Please see the attached pbix.
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.
Please see the attached pbix.
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
Step 4) Connect CombinedTable to your Date table
Modeling tab → Manage Relationships → create a relationship between CombinedTable[Date] and your Date table
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)
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
Proud to be a Super User!
Check out my blog: Power BI em PortuguêsHi @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!
Check out the April 2026 Power BI update to learn about new features.
Sign up to receive a private message when registration opens and key events begin.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
| User | Count |
|---|---|
| 28 | |
| 23 | |
| 22 | |
| 16 | |
| 16 |
| User | Count |
|---|---|
| 61 | |
| 35 | |
| 28 | |
| 22 | |
| 22 |