Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Hi all!
I am trying to use Power BI to display a report that will show me the past X number of months from the point that I click. For instance, If I click Jan, 2016 in the slicer, it will display September 2015-Jan 2016 in the graph (or however many months back X is). I understand you can use drill down to display by the years, but that is not what I want it to do (as drill down will only show me the months in that year.) I tried using the timeline slicer, and that didn't help. Any help would be appreciated!
Thanks again!
Solved! Go to Solution.
Hi @pantherfanrh,
I'd like to suggest you add a calculate column to show the diff between current row and today. After create the column, you can use this as the source of slicer(switch the mode to "Less than or equal to")
Calculated column formula:
Diff = DATEDIFF([Date],TODAY(),MONTH)
Notice: you should turn on the preview feature "number range slicer" to enable the expand options.
Regards,
Xiaoxin Sheng
Could you create a measure that did the calculation of X back so that numbers would be like 1 for 1 month back, 2 for two months back, etc. and then just set your filter on your visual to be that measure < X months back?
So something like
date=EDATE([workdate],13)
then set the filter to that measure?
I'm trying to use EDATE but it doesn't like it when I use my column of dates in the table. Any advice?
Hi @pantherfanrh,
I'd like to suggest you add a calculate column to show the diff between current row and today. After create the column, you can use this as the source of slicer(switch the mode to "Less than or equal to")
Calculated column formula:
Diff = DATEDIFF([Date],TODAY(),MONTH)
Notice: you should turn on the preview feature "number range slicer" to enable the expand options.
Regards,
Xiaoxin Sheng
Thank you so much!
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
| User | Count |
|---|---|
| 94 | |
| 70 | |
| 50 | |
| 40 | |
| 39 |