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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
morgtd30
Helper I
Helper I

Display a subtotal as a flat line across a line chart

I have a measure used to calculate an end of year forcast which I currently only display in a number card.

I want to be able to display this as a solid line across a a year-long line chart that displays other month-to-month projections as well. I cannot figure out if there's a way to achieve this. Any ideas?

4 REPLIES 4
amitchandak
Super User
Super User

@morgtd30 , make sure you store that on the last date of the year and use closingbalanceyear

 

Or try  calculate(lastnonblankvalue(Date[date],sum[Table Budget])), all(Date))

Prefer to use date table

refer to this video: https://youtu.be/yPQ9UV37LOU

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Thank you. It looks like this would work, but it didn't.

 

Upon putting my measure into a table, I can see that every row shows infinity even though the Total is correct.

Hi @morgtd30 ,

 

Refer to these:

https://blog.enterprisedna.co/create-dynamic-forward-forecasts-in-power-bi-w-dax/ 

https://community.powerbi.com/t5/Desktop/YTD-Actual-and-Forecasts-with-Measures/td-p/363767 

If the problem persists,could you share the sample pbix via cloud service like onedrive for business?

Please mask any sensitive data before uploading

 

Best Regards,
Liang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

@morgtd30 , Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

Find out what's new and trending in the Fabric community.

July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.

Top Kudoed Authors