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

Data Days is here! Join us now for 60+ days of learning, challenges, and connection. Learn more

Reply
nicolcutts
Frequent Visitor

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)  is a type within the column and the total for Jan was 40 
  • Project Manager (TPS) is a type within the column and the total for Jan 20  
  • How do I show a card with 50% on (indicating that we have 50% more of Project Manager (OS) than we do Project Manager (TPS))

 

 

 

 

1 ACCEPTED SOLUTION

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]

5.png

 

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.

View solution in original post

3 REPLIES 3
Greg_Deckler
Community Champion
Community Champion

Really depends on your data and how you are presenting it. Please see this post regarding How to Get Your Question Answered Quickly: https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490

 

That being said, you could create measures like:

 

OSHours = SUMX(FILTER('Utilisation',[Resource Type]="Project Manager (OS)"),[Hours])

TPSHours = SUMX(FILTER('Utilisation',[Resource Type]="Project Manager (TPS)"),[Hours])

Percent = [TPSHours] / [OSHours]

Make sure you get those TPS reports in on time. Did you get the memo?



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

Utilisation Table 

 

Resource Type                  Count of Resource Type

Project Manager (OS)           40

Project Manager (TPS)          20

 

The table looks like the above. I understand the formula;

1. Work out the total for Project Manager (OS) in the resource type field 

2. Work out the total for Project Manager (TPS in the resource type field

3. Work out the percentage 

 

I dont understand sorry the ,[Hours] part is this a field in the table or just a field to return the value to 

 

OSHours = SUMX(FILTER('Utilisation',[Resource Type]="Project Manager (OS)"),[Hours])

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]

5.png

 

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.

Helpful resources

Announcements
Fabric Data Days is here Carousel

Fabric Data Days 2026

Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.

May Power BI Update Carousel

Power BI Monthly Update - May 2026

Check out the May 2026 Power BI update to learn about new features.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.