Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.
Hi,
Please anyone help on this.
The black bar is Actual INVENTORY Amount
The green bar is cummulative sum of it. It also summing the dec 2017 and jan 2018 also. i dont want continue for next year. The next Year should start from jan of that year. The DAX which I used is
Cummulative INVENTORY AMT =
CALCULATE (
[INV_Amount],
FILTER (
ALL ( 'GENERALJOURNALENTRY' ),
GENERALJOURNALENTRY[ACCOUNTINGDATE] <= MAX ( GENERALJOURNALENTRY[ACCOUNTINGDATE] )
)
)
thanks.
Solved! Go to Solution.
You may refer to the DAX below.
Measure = VAR d = MAX ( GENERALJOURNALENTRY[ACCOUNTINGDATE] ) RETURN CALCULATE ( [INV_Amount], FILTER ( ALL ( 'GENERALJOURNALENTRY' ), GENERALJOURNALENTRY[ACCOUNTINGDATE] <= d && GENERALJOURNALENTRY[ACCOUNTINGDATE] >= DATE ( YEAR ( d ), 1, 1 ) ) )
You may refer to the DAX below.
Measure = VAR d = MAX ( GENERALJOURNALENTRY[ACCOUNTINGDATE] ) RETURN CALCULATE ( [INV_Amount], FILTER ( ALL ( 'GENERALJOURNALENTRY' ), GENERALJOURNALENTRY[ACCOUNTINGDATE] <= d && GENERALJOURNALENTRY[ACCOUNTINGDATE] >= DATE ( YEAR ( d ), 1, 1 ) ) )
User | Count |
---|---|
97 | |
87 | |
77 | |
67 | |
63 |
User | Count |
---|---|
111 | |
96 | |
96 | |
67 | |
63 |