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

Level up your Power BI skills this month - build one visual each week and tell better stories with data! Get started

Reply
Tomhayw
Helper I
Helper I

Summing a dynamic measure

Hi there,

 

I'm having trouble with one of my measures:

Tomhayw_0-1665483362540.png

I have this table of utilisation rates. The 'Fact' column is just a sum of days worked by an employee.

The 'Target' column is the total number of days available for that person in that month. So for example, if they joined half way through the month, only half the total days would be available. 

Target  =
var f = MIN('Clockify Time Entries'[FirstDateWorked])
var result =
CALCULATE(DISTINCTCOUNT('Calendar'[Date]),
    FILTER('Calendar',
        not 'Calendar'[Weekend ONLY]&&
        'Calendar'[Date]>=f&&'Calendar'[Date]<=today()))
return
result
 
Though, as you can see, the total at the bottom is 22, but I want it to be the sum of that column., and the % column is a sum, whereas I would like it to essentially be (total hours / hours available)
I don't mind creating another measure whose sole purpose is to sum that column up but I'm not sure how to do it.
Any help would be great!
 
Thanks,
Tom

 

1 ACCEPTED SOLUTION
Tomhayw
Helper I
Helper I

I've figured it out:

 

I used =SUMX(VALUES( Target, username)

 

to allow me to sum all the different rows together.

View solution in original post

1 REPLY 1
Tomhayw
Helper I
Helper I

I've figured it out:

 

I used =SUMX(VALUES( Target, username)

 

to allow me to sum all the different rows together.

Helpful resources

Announcements
April Power BI Update Carousel

Power BI Monthly Update - April 2026

Check out the April 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.