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

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.

Reply
MozTom
Regular Visitor

Carry current month total forward to plot future changes

Hi All

More rusty on DAX than I thought. I have to import messy Excel data which I'm fine with and can get nearly all the analysis squeezed out of it but I'm stuck on the following...

 

I'm dealing with long term patients in a facility, some of which have prospective discharge dates. So for each month's data I get I want to provide a dual axis chart showing the number of discharges per (future) month (which I am OK with - by plotting a count of Month Differences against a continuous date axis.

 

The challenge is, I also want to include a line representing the latest monthly total of patients (with or without discharge dates) which will adjust when the prospective discharges are deducted and shown in the bars. The chart would only need to go into the future as far as the maximum proposed discharge date.

 

This is a rough mock up of what my data looks like. There are a couple of records that have discharge dates that have expired so eventually should be updated. Each new month may add new patients and have existing patients give new prospective discharge dates - I'm only interested in showing the projections based on the currently available data.

 

MozTom_0-1720450618082.png

 

I need a measure to be able to plot the line over future months and drop in the extra axis field well so users can 'project' capacity.

 

I haven't been able to find examples close enough so any help would be appreciated.

Thanks in advance

1 REPLY 1
foodd
Super User
Super User

Hello @MozTom , and thank you for sharing a question with the Community.   This reply is informtional.   Please remember to adhere to the decorum of the Community Forum when asking a question.

Please provide your work-in-progress Power BI Desktop file (with sensitive information removed) that covers your issue or question completely in a usable format (not as a screenshot). You can upload the PBIX file to a cloud storage service such as OneDrive, Google Drive, Dropbox, or to a Github repository, and then share a file’s URL.

https://community.fabric.microsoft.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-...

Please show the expected outcome based on the sample data you provided.

https://community.fabric.microsoft.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447...

This allows members of the Forum to assess the state of the model, report layer, relationships, and any DAX applied.

 

If your requirement is solved, please make THIS ANSWER a SOLUTION ✔️ and help other users find the solution quickly. Please hit the LIKE 👍 button if this comment helps you.  Proud to be a Super User!

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.