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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
jmkvalsund
Helper II
Helper II

Create column containing average value for product and deviation for each row

Hi,

I have a table containing productcode and achieved price for each sale (row).

Now I want to calculate the difference from the average sale for the actual product on each row, like this:

ProductAchieved priceDiff from average price
A50-8,333
A601,666
A656,666
B187-2,500
B1922,500
C  

 

And there are about 30000 sales and 50 products in the current table.
I've tried some combinations of AVERAGE (would prefer MEDIAN though) but I just don't get how to filter on products...

Anyone?

Regards,

John

0 REPLIES 0

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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