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
dkjain77
Regular Visitor

Power BI Date Slicer

How can I design date slelection in Below format

 

Date Slicer - Relative date

 

dkjain77_0-1611814630761.png

 

4 REPLIES 4
dkangel21
Frequent Visitor

Or Roll your own custom one.  This is my first one - calculations are all 4-5-4 calendar based but uses a standard retail calendar interface.  

dkangel21_0-1620685007104.png

 

lbendlin
Super User
Super User

Time to rethink your UX paradigms, I guess.  Maybe teach your users how to use the native Power BI date filters?

lbendlin
Super User
Super User

You write a measure that probes SELECTEDVALUE() of your date slicer, and then computes the corresponding range (likely with a rather long SWITCH() statement)

We have tried that and it is messy.  Not to mention it shoots the memory usage up and slows down the entire filtering process.  Writing a relative control that works in conjunction with a date slicer works somewhat but it has issues when new data shows up because the filter gets applied across the board when loading.  

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.