Forum Discussion
AVERAGE
Anonymous -
I think you are going to want to essentially recreate the 3 measures used for retention, but with the "last quarter" filter you were using in AVERAGEX. So create
[LQ Added]
[LQ Active]
[LQ Starting]
and then your [LQ Retention] is essentially the same formula
( [LQ Added] - [LQ Active] ) / [LQ Starting]
dedelman_clng This puts me back to a place I was at previously:
It is only returning the last value of the last month of quarter 1. It is not taking february or january into the formula. This is what each individual formula looks like:
- dedelman_clng8 years agoCommunity Champion
Anonymous - because you have competing filters in [Active] and [LQ Active], you will likely have to redo the calculation part of [Active] (DISTINCTCOUNT) in [LQ Active] (rather than referring to the other measure).
Also, you may need to "clear" the filters from DATE when calculating the LQ measures (since you're showing the data in table, the measure will inherit the implicit filter from the table
...FILTER(ALL('Date'), 'Date[Year]'=2018...)
Time intelligence is always tricky in DAX/PowerBI - I have found that often you have to resort to building calculations for time comparisons twice.
- Anonymous8 years agoNot applicable
dedelman_clng I think I see. So my LQ Active would look something like:
LQ Active = CALCULATE(DISTINCTCOUNT(M3[co]),FILTER(M3,M3[startDate]<=MAX('Date'[Date])&&M3[enddate]>=MAX('Date'[Date])),FILTER(ALL('Date'),'Date'[Year]=2018&&'Date'[Quarter]="Qtr 1")))- dedelman_clng8 years agoCommunity Champion
Yes - looks like you're on the right track