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

Relative Date Functionality in Power BI:

Hi Team,

 

Issue#1 

Need to know is there any way to implement the below relative date filter functionality in Power BI

 
aniketvals_0-1627445045049.jpeg
Please note the following:

 

For year the base year should be current year, for now it should be 2021

For month the base month should be current month, for now it should be july and so on.

 
Issue#2:

Based on the above, we want to implement a functionality based on the below selection, where in if we select week, then we should see the count of a metric only for the weeks which are passed by the above filters and similarly for months, days etc. For eg, if we select year, then we should get the count for the year 2022 only as this is the only year passed by the above filter.

 
aniketvals_1-1627445045051.jpeg

 

 
Thanks for any help!
1 REPLY 1
amitchandak
Super User
Super User

@Anonymous , If a relative date slicer can not work for you, you have to create this with one or more slicers and implement it using an independent date table.

 

relative date slicer -https://docs.microsoft.com/en-us/power-bi/visuals/desktop-slicer-filter-date-range

 

Refer to my video, where I made small attempt

refer

Need of an Independent Date Table:https://www.youtube.com/watch?v=44fGGmg9fHI

 

or this

https://community.powerbi.com/t5/Desktop/Required-custom-date-Slicer-Last-7-days-last-15-days-last-30/m-p/1284966#M561629

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.