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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
cyn_delin
New Member

Percentage by multiple categories

Hello all,

 

Total newbie here, I apologize if the title is not explicative enough.

 

I have two tables: DataBase and Limit

 

'DataBase'

MachineMonthPerformance
AApril80
BApril50
CApril30
AMay60
BMay90
CMay30

 

'Limit'

MonthCapacity
April100
May150

 

'Limit' shows that all machines, A, B and C, have the same capacities (let's say, the maximum hours of work), but this capacity changes by month. On the other hand, 'DataBase' shows the actual performance (hours) of all machines on all months.

 

I've been trying to get the percentage of performance based on month and machine. To put it more clearly:

MachineMonth(calculation in my head)Expected result (% performance)
AApril80/1000,8
AMay60/1500,4
BApril50/1000,5
BMay90/1500,6
CApril30/1000,3
CMay30/1500,2

 

I've been messing around with the quick measure:

 

Performance divided by Capacity = 
DIVIDE(SUM('DataBase'[Performance]), SUM('Limit'[Capacity]))

 

 But clearly I don't know what I'm doing because it doesn't work the way I want.

 

Any help is appreciated!

1 ACCEPTED SOLUTION
v-yadongf-msft
Community Support
Community Support

Hi @cyn_delin ,

Please create a new column:

 

Performance divided by Capacity = 
var per = 'DataBase'[Performance]
var cap =  CALCULATE(MAX('Limit'[Capacity]),FILTER('Limit','Limit'[Month] = 'DataBase'[Month]))
return
DIVIDE(per,cap)

 

vyadongfmsft_0-1662535547474.png

 

Best regards,

Yadong Fang

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
v-yadongf-msft
Community Support
Community Support

Hi @cyn_delin ,

Please create a new column:

 

Performance divided by Capacity = 
var per = 'DataBase'[Performance]
var cap =  CALCULATE(MAX('Limit'[Capacity]),FILTER('Limit','Limit'[Month] = 'DataBase'[Month]))
return
DIVIDE(per,cap)

 

vyadongfmsft_0-1662535547474.png

 

Best regards,

Yadong Fang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

Hi @v-yadongf-msft,

 

Thank you so much for your help, worked like a charm!

amitchandak
Super User
Super User

@cyn_delin , First get the column in Table and use that or

 

example

Capacity = maxx(filter(Capacity, database[Month]=Limit[Month]) , Limit[Capacity])

Full Power BI Video 20 Hours YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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