Forum Discussion
Anonymous
2 years agoNot applicable
Current Month, Previous Month and In Prior 3 months to current Month
Hi All, I have Fact Data which has ticketno, stepnumber, score. I have Fact Ticket which has ticketno, executive, ClosureDate. Table1 and Table2 are related on ticketno - many to one Tabl...
Anonymous
2 years agoNot applicable
Hi Anonymous ,
You can try this expression.
Prior3MonthAverageRatings =
VAR SelectedMonthOffset = SELECTEDVALUE('Dim Date'[CurMonthOffset])
VAR StartOffset = SelectedMonthOffset - 4
VAR EndOffset = SelectedMonthOffset - 2
RETURN
CALCULATE(
[AverageScore],
REMOVEFILTERS('Dim Date'),
FILTER(
'Dim Date',
'Dim Date'[CurMonthOffset] > StartOffset &&
'Dim Date'[CurMonthOffset] <= EndOffset
)
)
If you don't get the results you expect, can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data. We can better understand the problem and help you.
Best Regards,
Clara Gong
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.