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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Helper V

## How to get a sum of a measure

Hi,

I created a measure which calculates a percentage utilization. The measure is below:

Utilization Percent = (
SUM('Resource Utilization'[Billable Hours])
/
(
IF(
CALCULATE( SUM('Resource Utilization'[Work Week Hours]) ) = BLANK(),
0,
CALCULATE( SUM('Resource Utilization'[Work Week Hours]) )
) -
IF(
CALCULATE( SUM('Resource Utilization'[Time off Hours]) ) = BLANK(),
0,
CALCULATE ( SUM('Resource Utilization'[Time off Hours]) )
) -
IF(
CALCULATE( SUM('Resource Utilization'[Holiday Hours]) ) = BLANK(),
0,
CALCULATE ( SUM('Resource Utilization'[Holiday Hours]) )
)
)
) * 100

I want to create another measure, which calculates the sum of the above measure. I was wondering is there a way to create this measure? I tried a few scenarios with SUM and SUMX, but I either get an incorrect SUM amount or I get a syntax error.

Jason

1 ACCEPTED SOLUTION
Helper V

Hi @ryan_mayu ,

I was able to figure out how to do this. What I did is the following:

Sum Utilization = SUMX(VALUES('Resource Utilization'[Id]), [Utilization Percent])

It seems to work.

Jason

2 REPLIES 2
Super User

could you pls provide the sample data and expected output?

Did I answer your question? Mark my post as a solution!

Proud to be a Super User!

Helper V

Hi @ryan_mayu ,

I was able to figure out how to do this. What I did is the following:

Sum Utilization = SUMX(VALUES('Resource Utilization'[Id]), [Utilization Percent])

It seems to work.

Jason

## Helpful resources

Announcements

#### Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

#### Join our Community Sticker Challenge

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

#### Power BI Monthly Update - July 2024

Check out the July 2024 Power BI update to learn about new features.

#### Fabric Community Update - July 2024

Find out what's new and trending in the Fabric Community.

Top Solution Authors
Top Kudoed Authors