Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.
Imagine I have a table that has two columns, Units Sold and Product :
Units Sold Product
3 Fruit
5 Beverage
2 Fruit
1 Fruit
4 Beverage
7 Sweets
What is the right DAX expression that will give me the average number of sold units of each product type?
So the output that I want to get is a plot of average unit sold vs product type, where the average for fruit is 3.67, 3.14 for sweets, and 2.44 for fruit.
Hi Johnray,
I don't think that you need to create a measure for this.
You can simply create a bar chart in PowerBI and drag your existing measure "Unit Sold" in Value and "Product" into the Axis part then by clicking on "UnitSold" you can set the summarization to average.
You can still create a measue if you want: Measure = AVERAGE(Table1[UnitSold])
User | Count |
---|---|
15 | |
9 | |
8 | |
6 | |
5 |
User | Count |
---|---|
29 | |
18 | |
15 | |
7 | |
6 |