Forum Discussion
BI Measure
- 2 years ago
Good morning Thunders,
We need more details for the Quota, is it always 2500 ? or it's change by month ?Why you choose r
You can for exemple use something like that :
__Mesure =
Var Total = CALCULATE(SUM(Quota), ALL(Dates) // it will calculate all total of the quota
Var Aggre = CALCULATE(SUM(Sales), Dates[Month] >= EOMONTH(MAX('Dates'[Month]), -3) //Calculate the sum of every 3 last months
RETURN DIVIDE(Aggre, Total)
Hi Thunders, I think Anonymous gave the perfect solution. The alternate way is to set your date as financial date with April being the 1st month. Here is how to do that.
create a date table--
create month no
create month
and then sort your month by month no
Establish the relationship between this newly form date table and your table then, you can have this below measure
which will give you the output
Thank you.