Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Hi all,
I have 2 tables: Target and Actual&Forecast. The Target table has a Date column and an ItemCount column. The Actual&Forecast has a Date column and an ItemCount column. I want to create a line graph that shows cumulative target item counts vs cumulative actual&forecast item counts on the y-axis and Date on the x-axis.
The Target Line Graph is working fine with this:
Target Cumulative Sum = CALCULATE(SUM('Target'[ItemCount]), FILTER(ALL('Target'), 'Target'[Date] <=max('Target'[Date])))
But I couldn't get the Actual&Forecast Line Graph to work with this:
Actual Cumulative Sum = CALCULATE(SUM('ActualandForecast[ItemCount]), FILTER(ALL('ActualandForecast'), 'ActualandForecast'[Date] <=max('ActualandForecast'[Date])))
The Actual&Forecast line is showing more counts than target at a given date. How is this possible? How do you make the forecast part dotted line to separate from actual? Thank you for your help!
Hi, @nikkirai
Can you provide sample data for testing? Sensitive information can be removed in advance. What kind of expected results do you expect? You can also show it with pictures or Excel. I look forward to your response.
Best Regards,
Community Support Team _Charlotte
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 41 | |
| 39 | |
| 37 | |
| 29 | |
| 24 |
| User | Count |
|---|---|
| 119 | |
| 100 | |
| 72 | |
| 69 | |
| 65 |