Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.

Reply
IlMoro
Helper II
Helper II

Show percentage of a number of minutes assigned to a specific name compared with total minutes

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
 
This is the table
Capture.JPG
 
Thanks for any help
1 ACCEPTED SOLUTION
bcdobbs
Community Champion
Community Champion

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)


Ben Dobbs

LinkedIn | Twitter | Blog

Did I answer your question? Mark my post as a solution! This will help others on the forum!
Appreciate your Kudos!!

View solution in original post

3 REPLIES 3
Anonymous
Not applicable

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

VahidDM
Super User
Super User

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/

 

 

bcdobbs
Community Champion
Community Champion

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)


Ben Dobbs

LinkedIn | Twitter | Blog

Did I answer your question? Mark my post as a solution! This will help others on the forum!
Appreciate your Kudos!!

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.