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

Worklog - Total is Wrong

Hi, 

I am working on the Team Worklog and for some reason the Capacity total is coming wrong.

 

It's a simple worklog. The total for Capacity should be '469' but it's showing '784'.

 

 

capacity.png

The Measure I am using to calculate Capacity is

 

Capacity = DISTINCTCOUNT(Worklogs[Full name]) * DISTINCTCOUNT(Worklogs[Work date]) * 7

 

Utilization = SUM(Worklogs[Hours])

 

% Utilization = Worklogs[Utilization] / Worklogs[Capacity]

 

I guess is there is a better way to calculate the Capacity team.

 

My log looks something like this.

 

Full nameWork dateHours
Member 12018-2-5 00:002
Member 12018-2-5 00:002
Member 12018-2-5 00:002
Member 22018-2-5 00:002
Member 32018-3-14 00:001
Member 22018-3-14 00:002
Member 22018-3-14 00:002
Member 32018-2-8 00:003
Member 22018-2-5 00:000.25
Member 22018-2-7 00:000.5
Member 32018-2-9 00:000.25
Member 32018-2-13 00:000.25
Member 32018-2-14 00:000.25
Member 32018-3-6 00:002
Member 22018-3-1 00:001
Member 32018-2-19 00:002
Member 12018-2-20 00:003
Member 12018-2-21 00:000.5

 

Thanks,

Joydeep

1 ACCEPTED SOLUTION
v-shex-msft
Community Support
Community Support

Hi @joydeep7,

 

AFAIK, measure formulas has different calculation logic on total level. You need to add some conditions and specific formula to handling total level calculation.

 

Sample formula:

Capacity =
IF (
    ISFILTERED ( Worklogs[Full name] ),
    DISTINCTCOUNT ( Worklogs[Full name] ) * DISTINCTCOUNT ( Worklogs[Work date] )
        * 7,
    SUMX (
        SUMMARIZE (
            Worklogs,
            [Full name],
            [Work date],
            "Capa", DISTINCTCOUNT ( Worklogs[Full name] ) * DISTINCTCOUNT ( Worklogs[Work date] )
                * 7
        ),
        [Capa]
    )
)

 

 12.PNG

 

Reference link:
Clever Hierarchy Handling in DAX

 

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

View solution in original post

2 REPLIES 2
v-shex-msft
Community Support
Community Support

Hi @joydeep7,

 

AFAIK, measure formulas has different calculation logic on total level. You need to add some conditions and specific formula to handling total level calculation.

 

Sample formula:

Capacity =
IF (
    ISFILTERED ( Worklogs[Full name] ),
    DISTINCTCOUNT ( Worklogs[Full name] ) * DISTINCTCOUNT ( Worklogs[Work date] )
        * 7,
    SUMX (
        SUMMARIZE (
            Worklogs,
            [Full name],
            [Work date],
            "Capa", DISTINCTCOUNT ( Worklogs[Full name] ) * DISTINCTCOUNT ( Worklogs[Work date] )
                * 7
        ),
        [Capa]
    )
)

 

 12.PNG

 

Reference link:
Clever Hierarchy Handling in DAX

 

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.
Anonymous
Not applicable

Thank you Xiaoxin, this is really helpful. 

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.