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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request 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])

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
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.