Forum Discussion

masplin's avatar
masplin
Icon for Impactful Individual rankImpactful Individual
6 years ago
Solved

Struggling with getting right total.

I'm sure this is easy, but spent 2 days and still cant work it out!!!

 

I have a table with various projects and how many hours each is expected ot take as below

I want to create a date table the gives me the totla as each project comes on line such as below

 

I used this measure

Measure = 
CALCULATE(       sum('Sales Pipeline'[Est Hours]),
           FILTER(
                 'Sales Pipeline',
                 MIN('Sales Pipeline'[Close Date])<=MAX(DateTable[Day]) 
                  )
          )

 but you can see the total should be 550 on first row and only add in new projects as I pass the close date. I tried adding a SUMX clause on top but made no differnece. I'm completely stumped. I assume the issue is for the totla column it is looking up the MIN of [Close date] over whole table.

 

Can someone intelligence point me in the right direction as sure i've done this before without issue?

 

Thanks

Mike 

2 Replies