Forum Discussion
Matrix visual with calculated columns : add an average column of the shown columns?
- Anonymous2 years ago
Hi volt26
Sure, you can try this:
MEASURE = VAR _vtable = SUMMARIZE ( ALLSELECTED ( 'Table' ), 'Table'[ID], 'Table'[Num], "_AVG", [AVG] ) RETURN AVERAGEX ( _vtable, [_AVG] )The result is as follow:
Best Regards
Zhengdong Xu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
I apologize, I realize I should've given more information about my pbix file. Unfortunately, the numbers you see in my screenshot are not static. They are from a formula that grabs static data from other tables.
Example :
the 1,1 you see in the upper left cell represents how many transactions per day were made in average in that week.
So we can read that in week 1, the second name did 1,2 transactions per day. Then he did 0,2 in week 2. Week 3 shows no number because he wasn't at work or did 0 transactions.
Now these numbers are calculated from other measures and that is were my problem is... I can't quite grasp the concept of making an average with the numbers shows in the table as they are not static but obtained from measures.
I'm trying to recreate this challenge with your table. I added a new column named sold and entered transactions :
Now in Power BI I tried many things but I just can't get your formula to work because it calls static data from the table while I'm trying to get the average of measurments. I think I'm close to my goal...
Here is where I am right now :
I shared the files on my google drive : https://drive.google.com/file/d/1oljHM1qoQpainfHB8uj3Lzu_miwsGFmh/view?usp=sharing
Thank you for your help!