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
jmkvalsund
Helper III
Helper III

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

1 REPLY 1
Ankur04
Resolver II
Resolver II

Hi,

 

The information provided is incomplete. please try to give full context and input data and expected output along with calculation logic. this will help anyone to provide the solution.

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.