Forum Discussion

MozTom's avatar
MozTom
Regular Visitor
2 years ago

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.

 

 

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