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
TomMartens
Super User
7 years agoHey,
please provide an xlsx that contains sample data in one sheet and expected result in another sheet, upload the file to onedrive or dropbox and share the link.
Regards,
Tom
please provide an xlsx that contains sample data in one sheet and expected result in another sheet, upload the file to onedrive or dropbox and share the link.
Regards,
Tom
- atad7 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-msft7 years ago
Microsoft Employee
Hi 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,
- Ashish_Mathur7 years ago
Super User
- atad7 years agoFrequent Visitor
That's amazing Ashish! works like a charm! thanks so much!
I am so impressed by the techniques you applied here!
atad