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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

Reply
seanlim
Frequent Visitor

Measure calculating difference from average?

Hi there, I'm realtively new to PowerBI and I'm hoping someone here can help me out.

 

I am trying to create a measure that gives me the difference of AvgpriceTM from the total average price. 

i.e. (65 - 15.50)...(42-15.50) etc.. Any help would be greatly appreciated! 🙂

 

seanlim_0-1655709303877.png

 

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@seanlim ,

 

You need a measure like an example

Average(Table[Price]) - calculate(Average(Table[Price]) , allselected())

 

or

 

Average(Table[Price]) - calculate(Average(Table[Price]) , all())

View solution in original post

2 REPLIES 2
amitchandak
Super User
Super User

@seanlim ,

 

You need a measure like an example

Average(Table[Price]) - calculate(Average(Table[Price]) , allselected())

 

or

 

Average(Table[Price]) - calculate(Average(Table[Price]) , all())

This worked, thanks so much!

Helpful resources

Announcements
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

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