Forum Discussion
Average by a group
Hi,
I've tried more than 20 other solutions on similar problemt - none have worked so far.
I want to create a measure calculating the average category value share for each chain of stores (as seen below). this will then allow me to calculate any potentiale an underperforming store possesses.
The category value share is already calculated (measure).
Currently the wholesaler, chain and stores are stored in separate columns of the same table.
Example below:
| category value share | category value share (chain) | Potentiale | |
| Chain | 10% | 10% | - |
| - Store 1 | 5% | 10% | 5% |
| - Store 2 | 15% | 10% | - |
Following tables are used:
Table1 = Store data
Table2 = Category sales data
I have tried - among many others - the following:
= calculate(Table1[category value share],table1[chain])
Sincerely
Andreas D.
6 Replies
- SivaMani
Resident Rockstar
Anonymous, Did you try the below measure?
calculate(AVERAGE(Table1[category value share]),ALL(table1[store]))
- AnonymousNot applicable
Hi Siva,
When using the average function it does not recognize the category value share measure.- SivaMani
Resident Rockstar
Anonymous, Is it already a measure? If yes, the AVERAGE function doesn't require
calculate([category value share],ALL(table1[store]))