Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredJoin us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM. Register now.
Hi there,
I have a dashboard the is used to forecast sales based on opportunities from Microsoft Dynamics CRM.
The user has the following requirement - he wants to choose the forecast start month on a slicer and the table should filter the records for the 3 months following the the start date (chosen month is included).
So for example if her chooses January 2017, he should see records from January, February and March of 2017. It always needs to be set to 3 month, never 2, never 4 etc. It is basically always 3 months.
Any idea on how to accomplish that in Power BI?
Solved! Go to Solution.
Great solution, like it a lot. Is there a way to order the months in the forecast start slicer? January followed by february etc.?
You are welcone. If my reply helped, please mark it as Answer. I would suggest the approach of having 2 slicers - one in which you select the year and another in which you select the month. Create a month_order table and build a relationshop from the month column in the calendar table to the month column of the month_order table. Using the RELATED() function bring over the order column from the month_order table to the calendar table. Then use the Sort by column feature.
Download the file from here.
Here is the sample file
The expected behavior is that when I choose January 2017 start date, I should see projects 1, 2, 3, 4 and 5 as those fall into January, February and March. Project 6 is April so it would not appear in the table.
Thanks,
Petr
Hi,
You may refer to my solution here. I have had to create a calendar table and then create 2 relationships - one from Table1 to the calendar table and another from Table3 to the calendar table. I then rewrote your mesaure as well.
Hope this helps.
Great solution, like it a lot. Is there a way to order the months in the forecast start slicer? January followed by february etc.?
You are welcone. If my reply helped, please mark it as Answer. I would suggest the approach of having 2 slicers - one in which you select the year and another in which you select the month. Create a month_order table and build a relationshop from the month column in the calendar table to the month column of the month_order table. Using the RELATED() function bring over the order column from the month_order table to the calendar table. Then use the Sort by column feature.
Download the file from here.
Hi,
Share the download link of you Excel/PBIX file. Also, show your expected result.
Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!
Check out the October 2025 Power BI update to learn about new features.
User | Count |
---|---|
82 | |
42 | |
31 | |
27 | |
27 |