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!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
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!
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 37 | |
| 37 | |
| 33 | |
| 32 | |
| 29 |
| User | Count |
|---|---|
| 130 | |
| 88 | |
| 82 | |
| 68 | |
| 64 |