Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

Reply
aOliverzZ
Frequent Visitor

Ignore All Filters And show Last 12 Month From Selected Period - Drill through

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 🙂  

4 REPLIES 4
YonYon
Regular Visitor

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.

Capture.PNG

 

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:

aOliverzZ_0-1612375752568.png

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:

aOliverzZ_1-1612375863060.png

The slicer is hierarchical of Year-Month(not full date or date).

 

Thanks 🙂 

Helpful resources

Announcements
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

Find out what's new and trending in the Fabric Community.