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!To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.
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 / _A
Solved! 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)