Forum Discussion
Prevent Offset being filtered
Hi,
I'm trying to create a measure for compared to same period last year (I can't use the normal time intelligence as we use 13 periods in the year).
I am using offset to get the value for 13 periods prior, which works perfectly until I try to filter the data - it blanks.
I've tried replacing the ALLSELECTED with ALL but then the OFFSET breaks.
CALCULATE(
[% Accum YTD Joiners (Heads)],
OFFSET(
-13,
ALLSELECTED('Reporting DimDate'[Short_RSP],'Reporting DimDate'[Short_RSPYear])
,ORDERBY('Reporting DimDate'[Short_RSPYear], ASC )
)
)
I want to filter this by DimDate
2 Replies
- Greg_DecklerCommunity Champion
EWBWEBB You may find this helpful - https://community.powerbi.com/t5/Community-Blog/To-bleep-With-Time-Intelligence/ba-p/1260000
Also, see if my Time Intelligence the Hard Way provides a different way of accomplishing what you are going for.
https://community.powerbi.com/t5/Quick-Measures-Gallery/Time-Intelligence-quot-The-Hard-Way-quot-TITHW/m-p/434008Also:
- v-zhangtiCommunity Support
Hi, EWBWEBB
Can you provide sample data for testing? Sensitive information can be removed in advance. What kind of expected results do you expect? You can also show it with pictures or Excel. I look forward to your response.
Best Regards,
Community Support Team _Charlotte
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.