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!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Hi everyone.
I'm trying to calculate the average value of the CORRECT_STOCK for all the items I've got in my DB. The problem is that I find it difficult to calculate the average of a measure, without having a column or table.
I made two attempts to calculate it, but as you can see the values are not correct (in the first case I get the last value of CORRECT_STOCK for the item, while in the second I get a too low value.
Can you help me? Thank you in advance.
Solved! Go to Solution.
If you open the workspace that i have attached on the message you will notice that the first field comes from MSTR_ITM table and not FACT_MOVE table.
It seems that these 2 tables are not connected properly in the data model.
Also in the filter page the page filter comes MSTR_ITM table and not FACT_MOVE table
This measure works for me:
Average New = AVERAGEX(VALUES('Calendario RIDOTTO'[Date]),[CORRECT_STK])
See attached workspace.
Sorry but the value is the same for all items (283.85), or am I wrong? However thanks for the help.
If you open the workspace that i have attached on the message you will notice that the first field comes from MSTR_ITM table and not FACT_MOVE table.
It seems that these 2 tables are not connected properly in the data model.
Also in the filter page the page filter comes MSTR_ITM table and not FACT_MOVE table
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 41 | |
| 38 | |
| 36 | |
| 30 | |
| 28 |
| User | Count |
|---|---|
| 129 | |
| 88 | |
| 79 | |
| 68 | |
| 63 |