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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Anonymous
Not applicable

All Quarters between a project start date and a project end date; then calc how many days in e quart

Working on a project tool. Each project has a start date, duration, with calculated end date. My customers need to see a visual that lists the number of days in each quarter that the project will be worked on.

 

Example:

Start date: 2/1/2020

Duration (days): 175

End date: 7/24/2020

 

3 Quarters are impacted by this project. 2020-Q1, 2020-Q2, and 2020-Q3. I need a calculation that will return all of those quarters AND how many of the project days are in each of those quarters.

 

End result:

Quarters             Days

2020-Q1             60

2020-Q2             90

2020-Q3             25

 

Thank you for your help!

2 REPLIES 2
amitchandak
Super User
Super User

Make sure you have a calendar table.

Try this

calculate(count(date[date]),all(date[date]),filter(table,table[start_date]<=max(date[date]) && table[end_date] >=min(date[date])))
Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
Anonymous
Not applicable

There is a calendar table. I do not understand how your solution will calculate the number of project days in each quarter. Please look at the original post under "End Result".

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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