I am trying to compare the sales value against the target value accross time and regions, the issue i am having is that i can see the sales per region and date, and separately i can see the target per date (lookup so this is related) but not by region, after unpivoting the Target Table when i try to make a relationship betwen the table Target and Region i get an error because the Region table doesnt contain unique values; I created a region KEY table and made a relationship to the region table but still no luck, when i try to compare the Target with Sales, powerbi sum all the target values in the regions example:
I have 2 lookup tables: A data table and Regions table:
|CZ||Czech Republic||Eastern Europe|
then one Sales Data table:
|Shipping Country||Products Item||Products Quantity||Products Price||Order Total||Shipping Date|
And the Target Table:
I would really appreciatte any help on this.
Solved! Go to Solution.
Your relationship view seems fine. Both relations with Date and Region is One to Many with Target.
If possible please share a sample pbix file after removing sensitive information.
Hello @amitchandak Thanks for the reply.
You can download the pbix from onedrive here: https://1drv.ms/u/s!AguM2qARs0_yhlk819ZM_o5SBCQ6?e=OY4suB
Thanks in advace for your help.
after see the file - the problem is
Sales by Territory code and Target by Region code.
Modify Target table to be by Territory -
merge territory code , region and target togther.
Come together to explore latest innovations in code and application development—and gain insights from experts from around the world.
Put your data visualization and design skills to the test! This exciting challenge is happening now through May 31st!
Mark your calendars and join us on Thursday, May 26 at 11a PDT for a great session with Ted Pattison!