Forum Discussion
Rolling 3 Months Data
- 8 years ago
Hi gvb238
Here is an example
1.create a date table and manage relationships between the two table
date table = DISTINCT(Table1[date])
2. add 'date table' [date] to the slicer, then create measures as below
selected month = SELECTEDVALUE('date table'[date]) month difference = DATEDIFF(MAX([date]),[selected month],MONTH) if last three month = IF([month difference]>=1&&[month difference]<=3,1,0)3.then add the "if last three month" to the Visual Level filter, and set the condition to "show items when value is 1".
Best Regards
Maggie
Hi gvb238
Here is an example
1.create a date table and manage relationships between the two table
date table = DISTINCT(Table1[date])
2. add 'date table' [date] to the slicer, then create measures as below
selected month = SELECTEDVALUE('date table'[date])
month difference = DATEDIFF(MAX([date]),[selected month],MONTH)
if last three month = IF([month difference]>=1&&[month difference]<=3,1,0)
3.then add the "if last three month" to the Visual Level filter, and set the condition to "show items when value is 1".
Best Regards
Maggie
Hi, tried your solution, and sorry does not work :(
How can I get the selected date to every row in the table? I have it only on the row related to the selection, and then the next steps can be aplied :(
Thank you for help ...