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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

Last X Days Buttons

Hi,

I wanted to add a Button Feature, where I can easily change the Date Range. 
I tried to do it with parameter and meassures, but somehow I didnt managed to achive anything that is working 😄

 

 

last12monthGoodsReceipts = 
CALCULATE (
    COUNTROWS('SCR'),
    DATESINPERIOD('SCR'[Goods receipt date], TODAY(), -12, MONTH)
)

 

 

I tried do it for last 3, 6 & 12 months somehow like this.

fluxcapacitor11_0-1709194525746.png

My Parameter:

Parameter = {
    ("Letzten 90 Tage", NAMEOF('Meassures'[last3monthGoodsReceipts]), 0, "✓"),
    ("Letzten 182 Tage", NAMEOF('Meassures'[last6monthGoodsReceipts]), 1, "✓ "),
    ("Letzten 365 Tage", NAMEOF('Meassures'[last12monthGoodsReceipts]), 2, "✓  ")
}

So my buttons dont change anything and I dont know what to do. 
(Im also new to PowerBI).

Maybe someone knows a way and could me give me a guideline or something...
Thank you 🙂

1 ACCEPTED SOLUTION
Ritaf1983
Super User
Super User

Hi @Anonymous 
I didn't understand if you need the buttons from the selected date in a "regular" slicer or just from "today" so please refer to both videos, one of them should help 🙂

https://www.youtube.com/watch?v=3SmHtNf0QQ0

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

If this post helps, then please consider Accepting it as the solution to help the other members find it more quickly

Regards,
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile

View solution in original post

1 REPLY 1
Ritaf1983
Super User
Super User

Hi @Anonymous 
I didn't understand if you need the buttons from the selected date in a "regular" slicer or just from "today" so please refer to both videos, one of them should help 🙂

https://www.youtube.com/watch?v=3SmHtNf0QQ0

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

If this post helps, then please consider Accepting it as the solution to help the other members find it more quickly

Regards,
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.