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
krishanw
Helper II
Helper II

Calculate average using Switch condition

I need to calculate the average of the Efficiency Rating, But when I try to calculate the average of the efficiency rating, value is not loading 

krishanw_1-1673687118800.png

 

 

krishanw_0-1673686733128.png

 

This is my switch Condition

 

Efficency Rating =
SWITCH(TRUE(),
--P1
'Efficiency Matrix'[EfficencyRate]>=0 && 'Efficiency Matrix'[EfficencyRate]<=25,50,
'Efficiency Matrix'[EfficencyRate]>=24 && 'Efficiency Matrix'[EfficencyRate]<=50,75,
'Efficiency Matrix'[EfficencyRate]>=51 && 'Efficiency Matrix'[EfficencyRate]<=99,90,
'Efficiency Matrix'[EfficencyRate]>=100,100,
'Efficiency Matrix'[EfficencyRate]>0 && 'Efficiency Matrix'[EfficencyRate]<=-25,-50,
'Efficiency Matrix'[EfficencyRate]>-24 && 'Efficiency Matrix'[EfficencyRate]<=-50,-75,
'Efficiency Matrix'[EfficencyRate]>-51 && 'Efficiency Matrix'[EfficencyRate]<=-99,-90,
'Efficiency Matrix'[EfficencyRate]<=-100,-100

)
1 ACCEPTED SOLUTION
olgad
Resident Rockstar
Resident Rockstar

May be try this to see if it gives you what you want:

Averagex(Table where Efficicency Rating sits, [Efficiency Rating])

DID I ANSWER YOUR QUESTION? PLEASE MARK MY POST AS A SOLUTION! APPRECIATE YOUR KUDO/LIKE!
PROUD TO BE A SUPER USER!
Best Stories, Interesting Cases: PowerBI Storytime Newsletter
Linkedin Profile: Linkedin
YouTube Channel: PowerBI Storytime

View solution in original post

2 REPLIES 2
olgad
Resident Rockstar
Resident Rockstar

May be try this to see if it gives you what you want:

Averagex(Table where Efficicency Rating sits, [Efficiency Rating])

DID I ANSWER YOUR QUESTION? PLEASE MARK MY POST AS A SOLUTION! APPRECIATE YOUR KUDO/LIKE!
PROUD TO BE A SUPER USER!
Best Stories, Interesting Cases: PowerBI Storytime Newsletter
Linkedin Profile: Linkedin
YouTube Channel: PowerBI Storytime

Hi I was able to find this solution thanks

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.