Forum Discussion
Trailing 12 Average Balance (Measure based on another measure)
- 7 years ago
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
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
- Ashish_Mathur7 years ago
Super User
You are welcome. Thank you for your kind words.
- SK874 years ago
Helper III
I am looking something similar, Could you upload the pbix file here as I am not able to open one drive else let me know how you solved this problem.
Thanks in advance.
- Ashish_Mathur4 years ago
Super User
Attached here.
- Mirja_A2 years agoNew Member
Hi Ashish,
I have been looking for an answer to my PBI problem and it looks like you were solving here the same kind of dilemma that I'm having at the moment. But I could't get the material you had posted here years back. Any chances to repost it or something like that?
Kind regards,
Mirja A.
- Ashish_Mathur2 years ago
Super User
Hi,
I do not have that file now. Share some data (in a format that can be pasted in an SM Excel file), explain the question and show the expected result.