Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!
Hi
I have this messaure where i do a cumulativestock quantity. Works like a charm!
_cuml Stock QTY =
CALCULATE (
SUM ( 'Item ledger Entry'[Quantity] ),
FILTER ( ALL ( 'Item ledger Entry' ), 'Item ledger Entry'[Posting Date] <= MAX ( 'Item ledger Entry'[Posting Date] ) )
)
_Cuml Stock Value =
CALCULATE (
SUMX ( Products, Products[Internal Cost] * RELATED('Item ledger Entry'[Quantity]) ),
FILTER ( ALL ( 'Item ledger Entry'), 'Item ledger Entry'[Posting Date] <= MAX ('Item ledger Entry'[Posting Date]) )
)
Solved! Go to Solution.
@Lund , related can be used for table on one side
_Cuml Stock Value =
CALCULATE (
SUMX ('Item ledger Entry' , realted(Products[Internal Cost]) * ('Item ledger Entry'[Quantity]) ),
FILTER ( ALL ( 'Item ledger Entry'), 'Item ledger Entry'[Posting Date] <= MAX ('Item ledger Entry'[Posting Date]) )
)
@Lund , related can be used for table on one side
_Cuml Stock Value =
CALCULATE (
SUMX ('Item ledger Entry' , realted(Products[Internal Cost]) * ('Item ledger Entry'[Quantity]) ),
FILTER ( ALL ( 'Item ledger Entry'), 'Item ledger Entry'[Posting Date] <= MAX ('Item ledger Entry'[Posting Date]) )
)
Oh, okay. Thanks alot!
User | Count |
---|---|
125 | |
106 | |
99 | |
63 | |
62 |
User | Count |
---|---|
135 | |
116 | |
101 | |
71 | |
61 |