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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
some
New Member

Preset Filter buttons - how does it work

Hi, in this video the guy shows how to add preset filter buttons (1M, 3M, 6M, YTD) etc:

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

 

For this he creates a measure that returns 1 or 0 based on the selected button and the difference from the current date and the max date in the data.

The measure is added to the chart as filter.

 

But how does it work? It only returns 1 or 0 - how does Power BI now which date row gets a 1 and which a 0. 

 

 

here is also the pibx file:

https://github.com/MarkWilcock/lbag-online/tree/master/M%26G%20Results 

 

I feel like there is a step missing but I don't find anything in his file or so. 

Thanks

Br

 

2 REPLIES 2
amitchandak
Super User
Super User

@some , I think you can create measures and use field parameters too.

Can you please share what you are trying to achieve?


Power BI Field Parameters — A Quick way for Dynamic Visuals: https://amitchandak.medium.com/power-bi-field-parameters-a-quick-way-for-dynamic-visuals-fc4095ae9af...
Power BI Field Parameters- Measure Slicer and Axis/Dimension slicer: https://youtu.be/lqF3Wa1FllE

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Hi @amitchandak thank you for your answer. Your blog article comes close to what I want.
I want to show buttons with Months (January, February etc) and on click use a preset date filter for all visuals on the page. Is that possible?

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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