Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Hi,
I am a newbie at Powerbi. I want to have the average price per category.
But I don´t want to create a measure, as for me it has to be a fixed table. I manage to create a Measure, but then I can not the (price-average_price). I´d like to create a new column with the calculated field. But don´t know-how.
The table should look something like this, and I need to add average_price to the table.
id price category average_price
32141 100 050055555 75
32141 50 050055555 75
42421 300 030010402 283
42422 290 030010402 283
30074 250 030010402 283
42512 300 030010402 283
30289 250 030010402 283
49993 310 030010402 283
Thanks in advance
Solved! Go to Solution.
Hi,
Try this calculated column formula
Average_Price = calculate(average(Data[Price]),filter(Data,Data[category]=earlier(Data[category])))
Hope this helps.
thanks mate, really helped me!
You are welcome.
Hi,
Try this calculated column formula
Average_Price = calculate(average(Data[Price]),filter(Data,Data[category]=earlier(Data[category])))
Hope this helps.
@Anonymous hi, try this in your calculated colum
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
| User | Count |
|---|---|
| 96 | |
| 70 | |
| 50 | |
| 42 | |
| 40 |