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

Level up your Power BI skills this month - build one visual each week and tell better stories with data! Get started

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])

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
April Power BI Update Carousel

Power BI Monthly Update - April 2026

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

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

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.