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

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.

Reply
annie_liu
Helper I
Helper I

How to add a sum measure into another measure?

sample hrs.JPG2023-05-11_16-29-07.png

 

 

 

 

 

 

 

 

 

I am trying to create a measure called "VUL % overall hrs" that will give me the percentage of the sum row for Total VUL Hrs.

Currently, my NonHolidayLeave column is created by measure where it's the SUMtotal of Sum (('datatable'[colum1])-SUM('datatable'[column2])) 

 

I want to see the percentage of the Sum Total Vul /( Total of the Sum Measure Calculated Non Holiday Leave + Row SUM Expense Hrs.)

 Row 1 = 4 /(16+37) =7.55%

 Row 2 = 6 / (8+23) =19.35%

 

 

 

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @annie_liu ,

1. because you do not provide the sample data, i create a table to test, below is my test table

Table:

vbinbinyumsft_0-1684201197961.png

 

2. create a measure with below dax formula

VUL % overall hrs =
VAR _a =
    SELECTEDVALUE ( 'Table'[Row Sum Expense Hrs] )
VAR _b =
    SELECTEDVALUE ( 'Table'[Sum Measure Calculated Non Holiday Leave] )
VAR _c =
    SELECTEDVALUE ( 'Table'[Row Sum Total Vul Hrs] )
RETURN
    DIVIDE ( _c, _a + _b )

3. add a table visual

vbinbinyumsft_1-1684201249670.png

Please refer the attached .pbix file.

 

Best regards,
Community Support Team_Binbin Yu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Hi @annie_liu ,

1. because you do not provide the sample data, i create a table to test, below is my test table

Table:

vbinbinyumsft_0-1684201197961.png

 

2. create a measure with below dax formula

VUL % overall hrs =
VAR _a =
    SELECTEDVALUE ( 'Table'[Row Sum Expense Hrs] )
VAR _b =
    SELECTEDVALUE ( 'Table'[Sum Measure Calculated Non Holiday Leave] )
VAR _c =
    SELECTEDVALUE ( 'Table'[Row Sum Total Vul Hrs] )
RETURN
    DIVIDE ( _c, _a + _b )

3. add a table visual

vbinbinyumsft_1-1684201249670.png

Please refer the attached .pbix file.

 

Best regards,
Community Support Team_Binbin Yu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Wilson_
Super User
Super User

Hi Annie,

 

I found it hard to follow along and understand how the data and visual is set up. Can you also share the relevant columns and rows from the raw data that make up your screenshot?




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

Proud to be a Super User!





Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.