Forum Discussion
Past 12 Months Transfers
Hi all,
I have the below measure but it is not producing the correct result.
Hi, yaman123
It’s wrong to get the month like 'x2>=x1-12&&x2<=x1'. If you have a month slicer, and you want to filter data in table viusal, you can put the following measure in filter pane and set 1.
measure = IF ( DATEDIFF ( MAX ( 'Table'[FROM DATE] ), SELECTEDVALUE ( 'Date'[Date] ), MONTH ) <= 12, 1, 0 )If it doesn’t solve your problem, please share some sample data and your desired result ,and feel free to ask me.
Best Regards
Janey Guo
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
4 Replies
- amitchandak
Super User
yaman123 , refer to my video on the same topic if that can help
- yaman123
Post Partisan
Hi,
That doesnt help.
I would like to show the past 12 months of transfers
- v-janeyg-msft
Community Support
Hi, yaman123
It’s wrong to get the month like 'x2>=x1-12&&x2<=x1'. If you have a month slicer, and you want to filter data in table viusal, you can put the following measure in filter pane and set 1.
measure = IF ( DATEDIFF ( MAX ( 'Table'[FROM DATE] ), SELECTEDVALUE ( 'Date'[Date] ), MONTH ) <= 12, 1, 0 )If it doesn’t solve your problem, please share some sample data and your desired result ,and feel free to ask me.
Best Regards
Janey Guo
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
- yaman123
Post Partisan
Hi,
Thanks for that. I think that gives me what i require