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

Score big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount

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
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.