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

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

Reply
Anonymous
Not applicable

Best way to create buttons that correspond to specific time periods.

Hi BI Community,

 

I'm creating a dashboard in which I want the user to have the option of clicking one of four buttons - "WTD", "MTD", "QTD", "YTD". Obviously, I want these buttons to correspond to specific windows of time. What's the simplest way to approach this? My source data has sales by day for the past 2 years, and I have a calendar lookup table where I'm mapping the dates to specifc time periods (month, quarter, year, etc.). Keep in mind that I'm working from a fiscal calendar which does NOT correspond to the standard calendar, so that is one complexity.

1 ACCEPTED SOLUTION
V-lianl-msft
Community Support
Community Support

Hi @Anonymous ,

 

You can refer to this thread:https://community.powerbi.com/t5/Desktop/MTD-QTD-YTD-Calculation/m-p/664067

 

Best Regards,

Liang

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

View solution in original post

2 REPLIES 2
V-lianl-msft
Community Support
Community Support

Hi @Anonymous ,

 

You can refer to this thread:https://community.powerbi.com/t5/Desktop/MTD-QTD-YTD-Calculation/m-p/664067

 

Best Regards,

Liang

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

TomMartens
Super User
Super User

Hey @Anonymous ,

 

please provide a pbix that contains sample data but still reflects your data model.

Upload the pbix and/or xlsx to onedrive or dropbox and share the link.

 

What is the starting month of your fiscal year?

 

This great article by @GilbertQ explains in great detail what you are looking for.

 

Regards,

Tom



Did I answer your question? Mark my post as a solution, this will help others!

Proud to be a Super User!
I accept Kudos 😉
Hamburg, Germany

Helpful resources

Announcements
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