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
electrobrit
Post Patron
Post Patron

Relative Date Quick buttons like Yesterday, This Week, This Month, etc

I have been asked to add Relative Date Quick Links/Buttons to all reports.
So the user has to only click the button to get
Yesterday
This Week
This Month
This Quarter (haven't figured out how to do this one yet because it;s not in the relative date slicer)
This Year
Relative Quick Date Buttons.png
I did them as bookmarks using the relative date slicer but since finding on a 4 page report, setting bookmarks for all pages is becoming a pain and if you add something new, you have to reset the bookmark sometimes. Anyway, the more complex a report, this is not ideal.
I would prefer to user DAX and my date table rather than bookmarks.
Oddly, I can't find DAX for this and I'm a little new at it and having trouble.
Can someone help?

3 REPLIES 3
parry2k
Super User
Super User

@electrobrit hope this

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

get your started.



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

Not as crazy about that solution because I have to create all the measures. Is there a solution where you can do DAX like (this is pure example):  Yesterday=Today()-1, This Week= (someway to say week starts Monday) but +7 days?

I don't know, just would rather have Power BI do the all the measures. Is there such a thing as my examples?

@electrobrit there is not such thing, we can always have one measure which can work based on the selection. It is just matter of filtering the date based on selection. Hope this helps, if you need further assistance, let me know



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

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.