DAX query Calculation Help

Hi,

I need help with Dax query for below so instead of Count I need to get Desire Count.

Let say if current month is June and Type is PHC in March the count will be (March + april+ May+ Jun) which is (34 + 177 + 58 + 11) = 280. For April it will exclude March count which is 34 so April will be (177 + 58 + 11 ) = 246 etc

image

Another e.g. for current month (April) data would need to look like below

March

Last eg. let say if the month was May it result would be like this.

April

Thanks