Forum Discussion
atad
7 years agoFrequent Visitor
Trailing 12 Average Balance (Measure based on another measure)
Hi, I am still new to DAX. I have a table that contains general ledger account transactions: account number, date, value. I also have a date table. the fiscal year starts on May 1st, ends on Ap...
- 7 years ago
atad
7 years agoFrequent Visitor
First time to use drop box...below are the link to the files, first contains the excel file and expected result.
second is the pbix file.
Thanks,
https://www.dropbox.com/s/vsbk5hqxzvagtbd/BI%20Files.xlsx?dl=0
https://www.dropbox.com/s/sixqiwshxpzriep/trailing12Period_Balance.pbix?dl=0
v-cherch-msft
Microsoft Employee
7 years agoHi atad
You may try below measure and drag Year and Month column into the visual.
Total_Trailing12Period =
CALCULATE (
SUM ( Trsansactions[Value] ),
DATESINPERIOD ( 'Date'[Date], LASTDATE ( 'Date'[Date] ), -12, MONTH )
)
Regards,