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.
Hello all
I have this stocks table to get the daily average by product.
And what i am asking you guys, what's the right way to calculate this daily average by product.
Thank you all in advance
Best regards
Solved! Go to Solution.
Hi,
You can use the basic AVERAGE function it will change its values based on you filter. So AVERAGE(Table[Column]). Also you might benefit for using table visuals built in average aggregation.
Example:
Proud to be a Super User!
Hi,
You can use the basic AVERAGE function it will change its values based on you filter. So AVERAGE(Table[Column]). Also you might benefit for using table visuals built in average aggregation.
Example:
Proud to be a Super User!
Hi @ValtteriN
I believe you're right. I lost a lot of time with AVERAGEX(VALUES(Dates[Date]),[Stock]) and with KEEPFILTERS instead of VALUES but also a simple DIVIDE (Stock, countrows (Dates)). At the end, maybe because this is not a table with a record per day, your solution is the one, AVERAGE ( Table[column]).
Thanks a lot Valtteri
User | Count |
---|---|
15 | |
11 | |
6 | |
6 | |
5 |
User | Count |
---|---|
30 | |
18 | |
11 | |
7 | |
5 |