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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
krocsko
New Member

Three inputs: 1 - last selected month, 2 - period length, 3 - number of periods

Hello All,

I got an interesting problem to solve with Power BI and since I am fairly a beginner (couple of months of experience with Power BI), I would like to ask for suggestions. I have a master sales and master date table configured.

The customer requirements are the following:

  1. They would like to be able to select the last month (for example 2024-06)

  2. They would like to be able to select the period length (for example 1 month, 2 months, 3 months, etc.)

  3. They would like to be able to select the number of periods (for example 1, 2, 3, etc.)

Using these three inputs I need to create a report that returns the aggregated values ending with the selected month for each period for the number of periods selected.

For example: selected end month = 2024-06, selected period length = 3, selected number of periods = 4 means that I have to aggregate the sales data every 3 months starting from 2023-07 to 2024-06 and return 4 datapoints.

1st period = 2023-07 to 2023-09

2nd period = 2023-10 to 2023-12

3rd period = 2024-01 to 2024-03

4th period = 2024-04 to 2024-06

Each period should be aggregated on their respective 3-month period and displayed on a visual with play time functionality. Any suggestions/advice/pointers would be appreciated.

Thank you!

1 ACCEPTED SOLUTION
Ashish_Mathur
Super User
Super User

Hi,

I have solved a similar question in the attached file.  Please see if this helps.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

View solution in original post

1 REPLY 1
Ashish_Mathur
Super User
Super User

Hi,

I have solved a similar question in the attached file.  Please see if this helps.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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