Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.
Hi Everyone,
I’m new to Power BI so please excuse my lack of knowledge or if I’m not very specific.
I want to build a report to return the closest store where the product is available from customer’s preferred store.
I’ve 2 tables:
(table1) Product: (columns) PdtName, PdtDescription, PdtPrice, Store, StoreLat (latitude of the Store), StoreLng (longitude of the store)
(table2) OrderEOI: (columns) OrdrNum, PdtName, PreferredStore, PreferredStoreLat (latitude of preferred store), PreferredStoreLng (longitude of preferred store)
The relationship between the tables are many-to-many: PdtName *:* PdtName since the product name is unique but it may appear multiple times as it may be available at multiple stores as well as there can be orders for same product in different stores.
Ideally I would like to have a table report which would include following columns:
OrdrNum
PdtName
PdtDescription
PdtPrice
PreferredStore
ClosestStore (when PreferredStore = ClosestStore it would return the PreferredStore)
Distance (between the preferred and closest store)
Any suggestions/tips/solution would be highly appreciated.
Thanks in advance.
Solved! Go to Solution.
Thanks mate,
It actually solved a major issue although I still have a lot to tweak.
Cheers
User | Count |
---|---|
96 | |
85 | |
77 | |
66 | |
63 |
User | Count |
---|---|
110 | |
96 | |
96 | |
67 | |
59 |