The ultimate Microsoft Fabric, Power BI, Azure AI, and SQL learning event: Join us in Stockholm, September 24-27, 2024.
Save €200 with code MSCUST on top of early bird pricing!
Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started
Hi all
I have been working to resolve an issue for the past 3 days without much success. Have tried various permutations and combinations to no avail. Appreciate if anyone can suggest ideas to solve this problem
here are the details:
A. Data Sources
1. Data Table comprising National Sales for all stores (National Data). This comprises Store IDs and Sales among other fields
2. Competitors Lookup Table - This comprises Stores operating under ACME. There are two columns as follows:
ACME ID = Store IDs for ACME Stores
Competitor IDs = For each Store there are around 10 local competitor stores (each with their unique IDs). However due to close proximity in some cases, ACME's own stores are also part of the competitor group. Also as I am calculating market share, the sales for a particular store are also included in the competition
So for Example: the competition for ACME1 looks something like this in the Competitors Lookup Table
ACME ID CompetitorID
ACME1 ACME1
ACME1 ACME3
ACME1 ACME7
ACME1 Other1
ACME1 Other2
AMCE1 Other3
ACME1 Other4
ACME1 Other5
ACME1 Other6
ACME1 Other7
3. ACME Stores Lookup Table: This comprises a list of ACME Stores with their IDs and other attributes e.g. postcodes etc. I have added a column here to mark each row as "ACME" which then allows me to lookup the sold items from the National Data list for ACME stores.
B. Linkages:
CompetitorID links to National Data IDs - This allow calculation of Local Competition Sales (this is a many to many relationship)
ACMEID links to National Data IDs - This allows calculation of ACME Sales (one to many)
Measures:
Hi @AviBI ,
I am not sure what desired result would you want, could you please share your sample data and desired output screenshots for further analysis? You can also upload sample pbix to OneDrive and post the link here. Do mask sensitive data before uploading.
Please read this post to get your answer quickly: How to Get Your Question Answered Quickly.
Best Regards,
Amy
Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.
Check out the June 2024 Power BI update to learn about new features.
User | Count |
---|---|
138 | |
106 | |
103 | |
74 | |
59 |
User | Count |
---|---|
266 | |
127 | |
119 | |
100 | |
86 |