Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
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 ) ) )
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
112 | |
100 | |
76 | |
74 | |
49 |
User | Count |
---|---|
146 | |
108 | |
106 | |
90 | |
62 |