Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by watching the DP-600 session on-demand now through April 28th.
Learn moreJoin the FabCon + SQLCon recap series. Up next: Power BI, Real-Time Intelligence, IQ and AI, and Data Factory take center stage. All sessions are available on-demand after the live show. Register now
Hi Everyone!
I have a data table like that:
| ID | HOURS | DATE | NAME |
| TLIONINOX-42 | 4 | 2016-10-10 | Jhon |
| TBROEMBPT-8 | 5 | 2016-10-10 | Mike |
| TRSSHAREPO-27 | 8,5 | 2016-11-9 | Louis |
| TOFREBOOT-51 | 3 | 2016-10-10 | Jhon |
| TMNTOF-767 | 2 | 2016-11-10 | Mike |
| TPINEIROEC-19 | 7 | 2016-11-10 | Louis |
| TMNTOF-809 | 1 | 2016-11-10 | Jhon |
I would like to add a new column with the % of work ocupation per month for every person.
Ocupation_% = HOURS/SUM(HOURS of this person on this month)
Something like this:
| ID | HOURS | DATE | NAME | OCUPATION_% |
| TLIONINOX-42 | 4 | 2016-10-10 | Jhon | 57% |
| TBROEMBPT-8 | 5 | 2016-10-10 | Mike | 100% |
| TRSSHAREPO-27 | 8,5 | 2016-11-9 | Louis | 55% |
| TOFREBOOT-51 | 3 | 2016-10-10 | Jhon | 43% |
| TMNTOF-767 | 2 | 2016-11-10 | Mike | 100% |
| TPINEIROEC-19 | 7 | 2016-11-10 | Louis | 45% |
| TMNTOF-809 | 1 | 2016-11-10 | Jhon | 100% |
I can't find the formula to do this to me.
Some help please....
Solved! Go to Solution.
This should work as a Column and a Measure
FORMULA =
DIVIDE (
CALCULATE ( SUM ( 'Table'[HOURS] ) ),
CALCULATE (
SUM ( 'Table'[HOURS] ),
ALLEXCEPT ( 'Table', 'Table'[NAME], Table[DATE].[Month] )
),
0
)
This should work as a Column and a Measure
FORMULA =
DIVIDE (
CALCULATE ( SUM ( 'Table'[HOURS] ) ),
CALCULATE (
SUM ( 'Table'[HOURS] ),
ALLEXCEPT ( 'Table', 'Table'[NAME], Table[DATE].[Month] )
),
0
)
Thanks for the solution @Sean.
It works fine, although the decimals don't adjust perfectly to 100% of the total, 1-2% above sometimes. But in general looks good.
Thanks!
Check out the April 2026 Power BI update to learn about new features.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
| User | Count |
|---|---|
| 43 | |
| 35 | |
| 33 | |
| 21 | |
| 15 |
| User | Count |
|---|---|
| 64 | |
| 59 | |
| 31 | |
| 27 | |
| 25 |