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

Get Fabric Certified for FREE during AI Skills Fest. This week only. Secure your voucher now.

Reply
Anonymous
Not applicable

How to use periods to create monthly reports

Dear all,

I am a newbie in PowerBI and stuck on a challenge. 

 

I have two datasets about demand and capacity. 

Capacity Dataset has the teams, a period (StartDate, EndDate) and the number of people(FTE) we have during that period.

The Demand Dataset has the Activity, a period for implementation(StartDate, EndDate), the team needed and number of people(FTE) needed from the team.

fulyaa_2-1609849235037.png

 

fulyaa_3-1609849261933.png

 

I would like to create reports on these datasets 

  • how many people we have each month from each team
  • the demand requirements per month per team
  • if the capacity is enough to meet the demand per month

I appreciate your help to solve this.

1 ACCEPTED SOLUTION
AlB
Community Champion
Community Champion

Hi @Anonymous 

You're asking for quite a lot. I'll help out with the first requirement.

1. You can best create a date table DateT (no relationships)

2. Place DateT[Year], DateT[Month] and Capacity[Team] in a table visual

3. Create a measure and place it in the visual. You'd need to clarify what to do in cases where  a resource is available on a fraction of the month only.

AvailableFTEs =
VAR minDate_ = MIN ( DateT[Date] )
VAR maxDate_ =  MAX ( DateT[Date] )
RETURN
    CALCULATE (
        SUM ( Capacity[FTE] ),
        Capacity[StartDate] <= maxDate_,
        Capacity[EndDate] >= minDate_
    )

 

Please mark the question solved when done and consider giving a thumbs up if posts are helpful.

Contact me privately for support with any larger-scale BI needs, tutoring, etc.

Cheers 

 

SU18_powerbi_badge

View solution in original post

9 REPLIES 9
AlB
Community Champion
Community Champion

@Anonymous 

What exactly is the expected result, for years and for Totals?

You have to share the URL to the file hosted elsewhere: Dropbox, Onedrive... or just upload the file to a site like tinyupload.com (no sign-up required).

 

Please mark the question solved when done and consider giving a thumbs up if posts are helpful.

Contact me privately for support with any larger-scale BI needs, tutoring, etc.

Cheers 

 

SU18_powerbi_badge

 

Anonymous
Not applicable

Unfortunately, my organization does not let me to share externally. 

 

If we think of available people all year, the total is correct unless there is a change during the year. 

But when there is a change such as in FINCON BA APAC row, then it adds up the numbers. This double way of calculation makes the data unreliable.

 

We can say that the Total column is not meaningful when we think as number of people working during the year.

But this creates problems when I want to calculate available peoplehours, by multiplying AvailableFTEs by 18days. The total in that case should be the total of each column in the row, but is is as shown below.

 

Is there any way to solve this with measures? I do not want to use Crossjoin, but it seems like I have to.

Thanks

 

fulyaa_0-1610720602064.png

 

 

 

 

Anonymous
Not applicable

Testing to send message

AlB
Community Champion
Community Champion

@Anonymous 

Please provide an example of what exactly is not working and idealy share the pbix (or one with dummy data that reproduces the problem)

Please mark the question solved when done and consider giving a thumbs up if posts are helpful.

Contact me privately for support with any larger-scale BI needs, tutoring, etc.

Cheers 

 

SU18_powerbi_badge

Anonymous
Not applicable

It seems like I can not add the pbix file here.

Here is my data “Capacity”

I created a table of MyCalendar using

 

MyCalendar = CALENDAR(MIN(Capacity[StartDate]), MAX(Capacity[EndDate]))

 

Then I added a measure to capacity table 

 

AvailableFTEs = 
VAR minDate_ = MIN ( MyCalendar[Date] )
VAR maxDate_ = MAX ( MyCalendar[Date] )
RETURN
CALCULATE (
SUM ( Capacity[FTE] ),
Capacity[StartDate] <= maxDate_,
Capacity[EndDate] >= minDate_
)

 

 

When I put the Months and Available FTEs on a report the monthly capacity is calculated correctly but Years and Totals are not working.

And Year vs Resource Type is not correct.

 

Capacity table.pngScreenshot 2021-01-15 120416.pngScreenshot 2021-01-15 120756.png

AlB
Community Champion
Community Champion

Hi @Anonymous 

You're asking for quite a lot. I'll help out with the first requirement.

1. You can best create a date table DateT (no relationships)

2. Place DateT[Year], DateT[Month] and Capacity[Team] in a table visual

3. Create a measure and place it in the visual. You'd need to clarify what to do in cases where  a resource is available on a fraction of the month only.

AvailableFTEs =
VAR minDate_ = MIN ( DateT[Date] )
VAR maxDate_ =  MAX ( DateT[Date] )
RETURN
    CALCULATE (
        SUM ( Capacity[FTE] ),
        Capacity[StartDate] <= maxDate_,
        Capacity[EndDate] >= minDate_
    )

 

Please mark the question solved when done and consider giving a thumbs up if posts are helpful.

Contact me privately for support with any larger-scale BI needs, tutoring, etc.

Cheers 

 

SU18_powerbi_badge

Anonymous
Not applicable

 I realized with this method Monthly capacity is calculated correctly, but the year total is not working. Is there any method to correct this behavior of measures?

 

Anonymous
Not applicable

Thanks a lot, This is quite easy and to do point. 

amitchandak
Super User
Super User

@Anonymous , see if My HR blog can help

https://community.powerbi.com/t5/Community-Blog/HR-Analytics-Active-Employee-Hire-and-Termination-tr...

https://www.youtube.com/watch?v=e6Y-l_JtCq4

 

else

Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.

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

Helpful resources

Announcements
May Power BI Update Carousel

Power BI Monthly Update - May 2026

Check out the May 2026 Power BI update to learn about new features.

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.