Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!
I'd like to create a new column that calculates the percentage of hours as it relates to the sum of the hours, and do this by project #, and by the D/P column. For example, the value I'd like in the new column in the first row should show .4867 because 11.38/sum(11.38,8,4)=.4867. I'm not sure where to even start. Thanks.
Solved! Go to Solution.
You can refer to the following column
Column =
VAR a =
CALCULATE (
SUM ( 'Table'[Hours] ),
FILTER (
'Table',
[Project #] = EARLIER ( 'Table'[Project #] )
&& [D/P] = EARLIER ( 'Table'[D/P] )
)
)
RETURN
DIVIDE ( [Hours], a )
Best Regards!
Yolo Zhu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
You can refer to the following column
Column =
VAR a =
CALCULATE (
SUM ( 'Table'[Hours] ),
FILTER (
'Table',
[Project #] = EARLIER ( 'Table'[Project #] )
&& [D/P] = EARLIER ( 'Table'[D/P] )
)
)
RETURN
DIVIDE ( [Hours], a )
Best Regards!
Yolo Zhu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Thank you so much for your help!
Vote for your favorite vizzies from the Power BI World Championship submissions!
If you love stickers, then you will definitely want to check out our Community Sticker Challenge!
Check out the January 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 64 | |
| 51 | |
| 46 | |
| 23 | |
| 19 |
| User | Count |
|---|---|
| 138 | |
| 111 | |
| 50 | |
| 33 | |
| 29 |