The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.
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 | |
8 | |
6 | |
6 | |
5 |
User | Count |
---|---|
25 | |
13 | |
13 | |
8 | |
8 |