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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
Anonymous
Not applicable

slicer for days based off days ago

hi all.

 

I have a column called 'daysSinceSale' and it just calculates the days since the sale.

 

I want to create a slicer that will bin these days into groups. for example:

 

if daysSinceSale = 0 - 30 then 'Last30Days'

if daysSinceSale = 0 - 90 then 'Last90Days'

if daysSinceSale = 0 - 120 then 'Last120Days'

else 'OlderThen120Days'

 

I problem I face is I need to pick up the records in Last30Days when I am sliced on Last90Days

 

thank you for the help

1 ACCEPTED SOLUTION

Hi @Anonymous ,

 

My suggestion is to use bookmarks in this case.

Instead of slicer for grouping, add 4 buttons: 30 days, 90 days, 120 days, 120+ days.
Each button will be linked to different bookmark.

Each bookmark will have list to be displayed, and on visual level (ie: list) you will set relative date filter.

So button 30 days will be linked to bookmark called "30 days", and this bookmark will show only list where relative date is last 30 days.

Here are some screenshots:
bookmarks 1.PNGbookmarks 30 days.PNGFor the purpose of demonstration i set list for 90 days beside list od 30 days, but in reality it will be set on the same place.
bookmarks 90 days.PNG


Cheers,

Nemanja

View solution in original post

4 REPLIES 4
parry2k
Super User
Super User

@Anonymous so you are saying if the invoice is in 0-30 days, you want to see it any of other bins as well, correct?

 



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.

Anonymous
Not applicable

I am saying if I choose the Last90Days bin I want to make sure I pick up the records in Last30Days as well. I keep getting it screwed up and only classifying records as one bin only 

@Anonymous share sample data and expected result, very hard to follow what you are trying to do. Read this post to get your answer quickly.

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



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.

Hi @Anonymous ,

 

My suggestion is to use bookmarks in this case.

Instead of slicer for grouping, add 4 buttons: 30 days, 90 days, 120 days, 120+ days.
Each button will be linked to different bookmark.

Each bookmark will have list to be displayed, and on visual level (ie: list) you will set relative date filter.

So button 30 days will be linked to bookmark called "30 days", and this bookmark will show only list where relative date is last 30 days.

Here are some screenshots:
bookmarks 1.PNGbookmarks 30 days.PNGFor the purpose of demonstration i set list for 90 days beside list od 30 days, but in reality it will be set on the same place.
bookmarks 90 days.PNG


Cheers,

Nemanja

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors