Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hi, I need to calculate the percentaje by month of the Hours in this table, at the moment i obtain the % by all table, how to do that?, Thanks by the help
Solved! Go to Solution.
@Anonymous
If you are summarizing, use this method,
% By Month =
DIVIDE(
SUM(Table2[Hours]),
CALCULATE( SUM(Table2[Hours]) , ALLEXCEPT(Table2,Table2[Month]))
)
________________________
If my answer was helpful, please consider Accept it as the solution to help the other members find it
Click on the Thumbs-Up icon if you like this reply 🙂
⭕ Subscribe and learn Power BI from these videos
⚪ Website ⚪ LinkedIn ⚪ PBI User Group
Try this measure
Is not working, i have one table
Thanks by the help
Can you please provide some dummy data so that i can try
How to send you the pbix file?
Example Data
Month | Client | Hours |
1 | C1 | 3 |
1 | C2 | 4 |
1 | C3 | 6 |
1 | C4 | 8 |
1 | C1 | 9 |
1 | C1 | 10 |
1 | C2 | 2 |
2 | C3 | 3 |
2 | C4 | 5 |
2 | C4 | 7 |
2 | C2 | 8 |
3 | C4 | 12 |
3 | C2 | 34 |
@Anonymous
Measure to calculate the % of Total Hours by Month:
% Hours By Month =
DIVIDE(
SELECTEDVALUE(Table1[Hours]),
CALCULATE( SUM(Table1[Hours]) , ALLEXCEPT(Table1,Table1[Month]))
)
________________________
If my answer was helpful, please consider Accept it as the solution to help the other members find it
Click on the Thumbs-Up icon if you like this reply 🙂
⭕ Subscribe and learn Power BI from these videos
⚪ Website ⚪ LinkedIn ⚪ PBI User Group
Thanks a lot now iw working!, but when i tried summarize the hours the measure show errors. Thanks al ot by the help
@Anonymous
If you are summarizing, use this method,
% By Month =
DIVIDE(
SUM(Table2[Hours]),
CALCULATE( SUM(Table2[Hours]) , ALLEXCEPT(Table2,Table2[Month]))
)
________________________
If my answer was helpful, please consider Accept it as the solution to help the other members find it
Click on the Thumbs-Up icon if you like this reply 🙂
⭕ Subscribe and learn Power BI from these videos
⚪ Website ⚪ LinkedIn ⚪ PBI User Group
Thanks a lot by the help
Thanks by the help
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
111 | |
100 | |
80 | |
64 | |
58 |
User | Count |
---|---|
146 | |
110 | |
93 | |
84 | |
67 |