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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
danielfynes
Regular Visitor

Filter visual for month according to date selection

We have the requirement whereby we are using a "between" date selection to set the relevant date slicing for a set of reports. Most of the reports contain Day, Month and FYTD values which we calculate according to the End Date selected. So if the between Date section is from 2018/07/01-2018/10/20, the Day value will be the value for 2018/10/20, the MTD will be for October 2018 up until the 20th and the FYTD will be for the entire selection (these are not an issue). The problem we are having is some of the matrix visuals are only supposed to show values grouped according to the weeks from the last month (ie Week 1,2,3,4,5 in October). While the values are zero for the weeks outside of October we need these months/weeks to be filtered out completely. Furthermore, this needs to be dynamic according to the end date selected. In the example below, I would only like to see September's weeks.

 

Filtering.PNG   

3 REPLIES 3
v-yuta-msft
Community Support
Community Support

Hi danielfynes,

 

Your clarification is not so clear. Could you share some sample data and explain more details about your expected result?

 

Regards,

Jimmy Tao

Hi Jimmy Tao hopefully I can clarify things. In the example below, I have selected 2018/09/12 as my end date in my slicer. I would like everything in the report to reflect for this date. So in the matrix with DayValue, WeekValue, MTD and YTD, you will see that all these values reflect the relevant values for 2018/09/12, ie DayValue is the value on 2018/09/12, WeekValue is the WTD value for the week of 2018/09/12, MTD is the MTD value for the month of September and YTD is the YTD value for the year. This matrix visual is working perfectly. My problem is with the matrix at the bottom which shows Month and then the week number for the month (ie Week 1, Week 2... for each month). While the values are correct I need to filter the matrix to only show the month according to the end date selected, so for the selection below (2018/09/12) I would only like to see Month 9-> Week 1, Week 2, Week 3. I need this filter to be dynamic so that as I change the slicer end date the filter also changes accordingly. Here is a link for the example PBIX file Example PBIX file. Example.PNG

 

 

 

 

Greg_Deckler
Super User
Super User

Please see this post regarding How to Get Your Question Answered Quickly: https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490


@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

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.