Forum Discussion
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
I doubt MIN
Measure = CALCULATE( sum('Sales Pipeline'[Est Hours]), FILTER( 'Sales Pipeline', ('Sales Pipeline'[Close Date])<=MAX(DateTable[Day]) ) ) or Measure = CALCULATE( sum('Sales Pipeline'[Est Hours]), FILTER( 'Sales Pipeline', ('Sales Pipeline'[Close Date])<=MAX(DateTable[Day]) && ('Sales Pipeline'[Close Date])>=MIN(DateTable[Day]) ) )Appreciate your Kudos. In case, this is the solution you are looking for, mark it as the Solution. In case it does not help, please provide additional information and mark me with @
Thanks. My Recent Blog -
Winner-Topper-on-Map-How-to-Color-States-on-a-Map-with-Winners , HR-Analytics-Active-Employee-Hire-and-Termination-trend
Power-BI-Working-with-Non-Standard-Time-Periods And Comparing-Data-Across-Date-Ranges
Connect on Linkedin
2 Replies
- amitchandak
Super User
I doubt MIN
Measure = CALCULATE( sum('Sales Pipeline'[Est Hours]), FILTER( 'Sales Pipeline', ('Sales Pipeline'[Close Date])<=MAX(DateTable[Day]) ) ) or Measure = CALCULATE( sum('Sales Pipeline'[Est Hours]), FILTER( 'Sales Pipeline', ('Sales Pipeline'[Close Date])<=MAX(DateTable[Day]) && ('Sales Pipeline'[Close Date])>=MIN(DateTable[Day]) ) )Appreciate your Kudos. In case, this is the solution you are looking for, mark it as the Solution. In case it does not help, please provide additional information and mark me with @
Thanks. My Recent Blog -
Winner-Topper-on-Map-How-to-Color-States-on-a-Map-with-Winners , HR-Analytics-Active-Employee-Hire-and-Termination-trend
Power-BI-Working-with-Non-Standard-Time-Periods And Comparing-Data-Across-Date-Ranges
Connect on Linkedin- masplin
Impactful Individual
oh that is infruriating!!! Thanks so much