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

The FabCon + SQLCon recap series starts April 14th at 8am Pacific. If you’re tracking where AI is going inside Fabric, this first session is a can't miss. Register now

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
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.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

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