Join us for an expert-led overview of the tools and concepts you'll need to pass exam PL-300. The first session starts on June 11th. See you there!
Get registeredPower BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.
I need a measure that returns me the last 12 months of my base, but without accumulating. For example, if the base have 16 months, it only returns the last 12 months. it would be another moving measure always bringing the last 12 months. But if in my base have just 5 months will bring me just 5 months and when i have 12 months or more, it will bring me 12 months always 12 last months.
Solved! Go to Solution.
@David_Marks , Based on what I got,
First, create a measure
Avg 1 = averageX(Values('Date'[Month Year]), calculate(SUM(Sales[Sales Amount])))
then try
Cumm Sales = CALCULATE([Avg 1],filter(allselected(date),date[date] <=max(date[Date])))
To get the best of the time intelligence function. Make sure you have a date calendar and it has been marked as the date in model view. Also, join it with the date column of your fact/s. Refer :radacad sqlbi My Video Series Appreciate your Kudos.
User | Count |
---|---|
16 | |
13 | |
12 | |
11 | |
11 |
User | Count |
---|---|
19 | |
15 | |
14 | |
11 | |
10 |