The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
How to create dax measure 'actual spend' for that month when I have cumulative spend amount value for month on month. Please help.
I tried something like this
Hi @Jendeep ,
Please try something like this:
ActualSpend =
VAR _previous =
CALCULATE (
[Spend To Date],
FILTER (
ALL ( 'dates table' ),
[Date] <= EOMONTH ( MAX ( 'dates table'[Date] ), -1 )
)
)
RETURN
[Spend To Date] - _previous
Best regards,
Gengar
Hi,
I applied your formulae to calculate the actual spend for that month. It is appearing as below.
User | Count |
---|---|
25 | |
12 | |
8 | |
8 | |
7 |
User | Count |
---|---|
27 | |
12 | |
12 | |
12 | |
6 |