Forum Discussion
_chris_
Helper III
4 years agoRunning totals between to dates
Hi, I have a fact table with offers: OfferId Date CloseDate Amount I want to have the running totals for all my offers. However, the amount of an offer should only be added between Dat...
- 4 years ago
Hi _chris_
Try this measure instead. It doesn't care whether there is a relationship between both tables because it uses ALL to remove all filters in the context before comparing dates.
Open Amount = SUMX ( FILTER ( ALL ( 'Table' ), 'Table'[Date] <= MAX ( 'Date'[Date] ) && 'Table'[CloseDate] > MAX ( 'Date'[Date] ) ), 'Table'[Amount] ) + 0Best Regards,
Community Support Team _ Jing
If this post helps, please Accept it as Solution to help other members find it.
hnguy71
Super User
4 years agoHi _chris_ ,
Can you supply some sample data and expected output? This seems easy but with some data it would be better to understand your requirements a bit further.
- _chris_4 years ago
Helper III
Thanks hnguy71 that you plan on helping me 🙂
OfferId Date CloseDate Amount 1 15.03.2022 18.03.2022 100 2 17.03.2022 21.03.2022 1000
Date OpenAmount … 14.03.2022 0 15.03.2022 100 16.03.2022 100 17.03.2022 1100 18.03.2022 1000 19.03.2022 1000 20.03.2022 1000 21.03.2022 0 … This is very simplified my scenario but I hope it becomes clear what I need...
Again, thank you very much!