Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredJoin 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.
Hi!
I have a graph that has average values in it. These average values I have calculated in a measure. In a slicer I can specify which products I want to see the average values of. But if I use more than one product, it calculates the average value of those 2. But the slicer needs to summarize these values together.
For example:
| Product: | Average value: |
| Cheese | 10 |
| Milk | 10 |
| Eggs | 10 |
What happends in my case is that the average value will stay 10. But I want that it goes to 30. How can I do this?
Solved! Go to Solution.
Hi @Anonymous ,
What you need to do is an aggregator measure in this case use the SUMX:
AVERAGE VALUE = IF(HASONEVALUE(Table[Product]); [AVERAGE MEASURE]; SUMX(ALLSELECTED(Table[Products]);[AVERAGE MEASURE])
This will make the sum of all averages values when you don't have a single product selected.
Regards
Miguel Félix
Proud to be a Super User!
Check out my blog: Power BI em PortuguêsHi @Anonymous ,
You can refer to this measure and modify your own measure.
Measure = CALCULATE(SUM('Table'[Value]),ALLSELECTED('Table'))/COUNT('Table'[Product])Result would be shown as below:
Best Regards,
Jay
Community Support Team _ Jay Wang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @Anonymous ,
What you need to do is an aggregator measure in this case use the SUMX:
AVERAGE VALUE = IF(HASONEVALUE(Table[Product]); [AVERAGE MEASURE]; SUMX(ALLSELECTED(Table[Products]);[AVERAGE MEASURE])
This will make the sum of all averages values when you don't have a single product selected.
Regards
Miguel Félix
Proud to be a Super User!
Check out my blog: Power BI em PortuguêsIs it also possible with this measure that you don't select all product? For example 3, and show for these 3 the average sum value?
Hi @Anonymous ,
This works for any selection of the products doesn't matter how many you choose.
If you select only one it will make the average otherwise will pick up the number of products you select and their respective averages and sum them.
Regards
Miguel Félix
Proud to be a Super User!
Check out my blog: Power BI em PortuguêsI think you need sum of Avg
https://community.powerbi.com/t5/Desktop/SUM-of-AVERAGE/td-p/197013
Hi
the average of your value for Cheese is 10, for Milk is 10 and for Eggs is 10.
If you select only "Cheese", then the table will show only Cheese with an average that won't change as it stays at 10.
So I don't understand what you want exactly. Unless you want to show 30 in the total row...?
Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!
Check out the October 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 76 | |
| 37 | |
| 31 | |
| 27 | |
| 27 |