Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more
Hi,
with reference to this My old post I need now to calculate the percentage of the sum of minutes assigned to a specific name compared with the sum of total minutes of the column.
I tried this formula but it seems to not work.
Measure =
VAR _A =
CALCULATE(
SUM(Table[minutes]),
FILTER(
ALL(Table[Names]),Table[names]="dep1")
)
VAR _B =
SUM(Table[minutes])
RETURN
_B / _ASolved! Go to Solution.
Are you dropping the measure into a matrix with department names?
Measure =
VAR _A =
CALCULATE(
SUM(Table[minutes]),
REMOVEFILTER(Table[Names]),
Table[names]="dep1"
)
VAR _B =
CALCULATE(
SUM(Table[minutes]),
REMOVEFILTER(Table[Names])
)
RETURN
DIVIDE(_B, _A)
Hi @IlMoro,
Did the above suggestions help with your scenario? if that is the case, you can consider Kudo or accept the helpful suggestions to help others who faced similar requirements.
If these also don't help, please share more detailed information to help us clarify your scenario to test.
How to Get Your Question Answered Quickly
Regards,
Xiaoxin Sheng
Hi @IlMoro
The @bcdobbs solution will solve your problem, but if you have more that one NAMES column and you want to use them in youe report then it'd be better to change the RemoveFilter to ALL, and you can use MAX(Table[names]) rather that "dep1" if you want to use this measure in a table and see % for all NAMES:
Measure =
VAR _A =
CALCULATE(
SUM( Table[minutes] ),
FILTER( ALL( Table[Names] ), able[names] = "dep1" )
)
VAR _B =
CALCULATE( SUM( Table[minutes] ), ALL( Table[Names] ) )
RETURN
_B / _A
If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos!!
LinkedIn: www.linkedin.com/in/vahid-dm/
Are you dropping the measure into a matrix with department names?
Measure =
VAR _A =
CALCULATE(
SUM(Table[minutes]),
REMOVEFILTER(Table[Names]),
Table[names]="dep1"
)
VAR _B =
CALCULATE(
SUM(Table[minutes]),
REMOVEFILTER(Table[Names])
)
RETURN
DIVIDE(_B, _A)
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 9 | |
| 5 | |
| 4 | |
| 3 | |
| 3 |
| User | Count |
|---|---|
| 24 | |
| 12 | |
| 11 | |
| 9 | |
| 8 |