monsoonnut
New Member
- Joined
- Jul 1, 2016
- Messages
- 13
I am creating a stores report in Excel 2016 using PowerPivot
I have been asked to include measures relating to any stores that are within 10% of the size (m3) of a given store, i.e. return a list of stores that are within that size threshold.
I do not need to query against more than one store at a time.
I have a stores dim table with lots of data but the relevant columns are:
<tbody>
</tbody>
I have created measures for StoreSize, MaxSize and MinSize as comparators:
StoreSize= MAX(Stores[SIZE])
MaxSize= [StoreSize]+([ StoreSize]*0.1)
MinSize= [StoreSize]-([ StoreSize]*0.1)
By passing a single store to a pivot I need to return all other stores that are within 10% of its size.
I believe I need a duplicate copy of the stores table but after that I am stuck.
I have tried every iteration of calculate with differing filters I can think of but as I am returning multiple values there are always errors.
I am sure this is possible but cannot work out how!
Any ideas, comments, help would be appreciated.
I have been asked to include measures relating to any stores that are within 10% of the size (m3) of a given store, i.e. return a list of stores that are within that size threshold.
I do not need to query against more than one store at a time.
I have a stores dim table with lots of data but the relevant columns are:
LOC_NO | SIZE |
24 | 187 |
36 | 207 |
75 | 215 |
29 | 219 |
15 | 231 |
17 | 257 |
64 | 290 |
12 | 331 |
88 | 364 |
3 | 367 |
27 | 430 |
<tbody>
</tbody>
I have created measures for StoreSize, MaxSize and MinSize as comparators:
StoreSize= MAX(Stores[SIZE])
MaxSize= [StoreSize]+([ StoreSize]*0.1)
MinSize= [StoreSize]-([ StoreSize]*0.1)
By passing a single store to a pivot I need to return all other stores that are within 10% of its size.
I believe I need a duplicate copy of the stores table but after that I am stuck.
I have tried every iteration of calculate with differing filters I can think of but as I am returning multiple values there are always errors.
I am sure this is possible but cannot work out how!
Any ideas, comments, help would be appreciated.