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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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