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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
Anonymous
Not applicable

Filter and Slicer affecting the report

Dear Altriusts,

 

I have a report which is showing the last 12 months data only. and current month in the same report page but seperately. 

See the screenshot. 

filter_slicer_ITSD.png

The calender Higherchy for that report is like below:

calender.PNG

 

This report filter (first image) indicating filter and slicer affecting the report but I am able to find out any slicer and I am confused how this calander is rolling over last 12 months. 

I want to recreate this kind of report for other report requirements using this logic or any otehr suggestion is highly appreciable. 

 

Thanks in advance !

How to calculate last 12 months 

1 ACCEPTED SOLUTION

@Anonymous , add in your calendar as new columns and the add as a visual level filter based on need

View solution in original post

3 REPLIES 3
amitchandak
Super User
Super User

@Anonymous , One way is follow this video

https://www.youtube.com/watch?v=duMSovyosXE

 

other is to have these two flags and filter them at the visual level filter

 

Month Type = Switch( True(),
Date([Date]) = eomonth(Today(),-1),"Last Month" , //Last Month
Date([Date])= eomonth(Today(),0),"This Month" , //This Month
[Month Year]
)

lasr 12 Months Type = Switch( True(),
Date([Date]) >= eomonth(Today(),-11) && Date([Date])<= eomonth(Today(),0) ,"Last 12 Months" , //Last Month // or use -12
Date([Date])= eomonth(Today(),0),"Other Months" , //This Month
[Month Year]
)

Anonymous
Not applicable

@amitchandak where i would need to add these two flags in my calander function or need a new one. 

@Anonymous , add in your calendar as new columns and the add as a visual level filter based on need

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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