Forum Discussion
Running Total based on a Seperate Value
- 5 years ago
Hi, LanceTDL
Please check the below picture and the sample pbix file's link down below.
Running Qty On Hand Measure =
VAR transactioncumulatereverse =
CALCULATE (
SUM ( Transactions[Transactional Qty] ),
FILTER ( ALL ( Dates ), Dates[Date] >= MAX ( Dates[Date] ) )
)
RETURN
IF (
ISFILTERED ( Dates[Date] ),
IF (
NOT ISBLANK ( SUM ( Transactions[Transactional Qty] ) ),
transactioncumulatereverse
+ SUMX ( Transactions, RELATED ( Items[Qty on Hand] ) )
)
)https://www.dropbox.com/s/cne3sh5r1mz30ip/lance.pbix?dl=0
Hi, My name is Jihwan Kim.
If this post helps, then please consider accept it as the solution to help other members find it faster, and give a big thumbs up.
Linkedin: linkedin.com/in/jihwankim1975/
Twitter: twitter.com/Jihwan_JHKIM
Hi, LanceTDL
Please check the below picture and the sample pbix file's link down below.
Running Qty On Hand Measure =
VAR transactioncumulatereverse =
CALCULATE (
SUM ( Transactions[Transactional Qty] ),
FILTER ( ALL ( Dates ), Dates[Date] >= MAX ( Dates[Date] ) )
)
RETURN
IF (
ISFILTERED ( Dates[Date] ),
IF (
NOT ISBLANK ( SUM ( Transactions[Transactional Qty] ) ),
transactioncumulatereverse
+ SUMX ( Transactions, RELATED ( Items[Qty on Hand] ) )
)
)
https://www.dropbox.com/s/cne3sh5r1mz30ip/lance.pbix?dl=0
Hi, My name is Jihwan Kim.
If this post helps, then please consider accept it as the solution to help other members find it faster, and give a big thumbs up.
Linkedin: linkedin.com/in/jihwankim1975/
Twitter: twitter.com/Jihwan_JHKIM
Thanks Jihwan_Kim
That was exactly what I was looking for!