Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!
Hey all,
Few days ago I asked if is it possible to ignore filters and show last 12 month from selected period:
https://community.powerbi.com/t5/Desktop/Ignore-All-Filters-And-show-Last-12-Month-From-Selected-Per
This method is not working in the drill through page- If I choose april, 2020 and drill through the data - the selection of the period(april, 2020) becomes a filter, not slicer, and it shows only 1 month.
Any Suggestions ?
Thank 🙂
Hi,
To remove the same filter from drill through report, you can set "Keep all filters" to Off or remove the date filter that you don't want.
Then copy the slicer from main report and paste it on drill through page, it will prompt you Sync visuals? Select sysnc. This way the same filter will apply to drill through page slicer when user change it on main report.
Then make sure your graph is not interacting with the slicer by selecting the grey circle like below.
Because we don't want the chart to change when the date filtered is changed. Date filter is only used to calculate last 12 months.
Finally to show the last 12 months based on slicer you can refer to https://community.powerbi.com/t5/Desktop/Show-last-13-months-based-on-user-single-slicer-selection/t...
Has this post solved your problem? Please mark it as a solution
@YonYon Hey,
Thanks.
In the example the user need to pick a date in order to see the last 13 month, but in my case - I need the dates will always be 12 month before the selected year-month.
It's should be dynamic because the user drilling to this page and choosing a different month/year everytime.
Hi @aOliverzZ ,
First create a calendar table;
Then create a dax expression similarly as below:
sales=CALCULATE(SUM('Table'[sales]),Filter(ALL('Calendar table'),[Dates]<=selectedvalue([dates])&&
[Dates]>=CALCULATE(MAX([DATES]),DATEADD(selectedvalue([dates]),-13,MONTH))
If it doesnt help,pls share a sample data with expected output with us.
Best Regards,
Kelly
Did I answer your question? Mark my post as a solution!
@v-kelly-msft Hey,
Selectedvalue is not working with dateadd function because dateadd working only on a column.
This is a data sample:
but - the slicer selection is only for Month and year.
So every user chooses a different month/year, like april, 2020 -
Then, he should see a bar chart of 12 month before the selected period:
The slicer is hierarchical of Year-Month(not full date or date).
Thanks 🙂
User | Count |
---|---|
139 | |
113 | |
103 | |
73 | |
63 |
User | Count |
---|---|
136 | |
125 | |
107 | |
70 | |
61 |