The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.
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 |
---|---|
15 | |
8 | |
6 | |
6 | |
5 |
User | Count |
---|---|
23 | |
13 | |
13 | |
8 | |
8 |