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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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

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.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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