Forum Discussion

nicolcutts's avatar
nicolcutts
Frequent Visitor
7 years ago
Solved

Percentage Calculation

I would like to add a card to my report to show the percentage difference between different resource types Resource Type is the column name (within a table called Utilisation)  Project Manager (OS...
  • v-juanli-msft's avatar
    v-juanli-msft
    7 years ago

    Hi nicolcutts 

    Based on my understanding, [hours] in Greg_Deckler's formula is the same field as "Count of Resource Type" in your example.

    If  "Count of Resource Type" is a measure, you need to use "SUMX' function.

    Measure1 = 
    SUMX(FILTER(ALL(Sheet7),Sheet7[Resource Type]="Project Manager (OS)"),[Count of Resource Type])
    
    Measure2 = 
    SUMX(FILTER(ALL(Sheet7),Sheet7[Resource Type]="Project Manager (TPS)"),[Count of Resource Type]) 
    
    Measure3 = ([Measure1]-[Measure2])/[Measure1]

     

    Best Regards

    Maggie

     

    Community Support Team _ Maggie Li
    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.