cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Anonymous
Not applicable

How to relate KPI targets against Sales Value

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:

Capture.PNG 

I have 2 lookup tables: A data table and Regions table:

CODECOUNTRYREGION
AT  AustriaDACH
BG  BulgariaEastern Europe
PL PolandEastern Europe
CZ  Czech RepublicEastern Europe

 

then one Sales Data table:

Shipping CountryProducts ItemProducts QuantityProducts PriceOrder TotalShipping Date
DE2447AB133.633.62019-11-22
DE7626AB225502019-11-28
PL1370AB20183602019-11-20
DE2601AB1002019-11-19
DE314AB30154502019-11-18
PL3154AB1013.51352019-11-20

 

And the Target Table:

MonthDACHEastern Europe
Oct-19   377,033     92,125
Nov-19   404,556     58,246
Dec-19   222,883   259,211

 

Relationship View:

Rela.PNG

I would really appreciatte any help on this.

 

Thanks 

1 ACCEPTED SOLUTION

You can take Region from Region Table, not from Territory.

 

Screenshot 2019-12-07 11.04.58.png

 

Did I answer your question? Mark my post as a solution! Appreciate your Kudos!! !!
Dashboard of My Blogs !! Connect on Linkedin
Want To Learn Power BI
Learn Power BI Beginners !! Advance Power BI Concepts !! Power BI For Tableau User !! Learn Power BI in Hindi !!
Proud to be a Super User!
!! Subscribe to my youtube Channel !!

View solution in original post

5 REPLIES 5
FirasAlramli
Regular Visitor

I advise you to use Star schema relationship.

 

modify your tables by merge (Territory , Region,Target) and make it as one table.

 

amitchandak
Super User
Super User

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.
Thanks

 

 

Did I answer your question? Mark my post as a solution! Appreciate your Kudos!! !!
Dashboard of My Blogs !! Connect on Linkedin
Want To Learn Power BI
Learn Power BI Beginners !! Advance Power BI Concepts !! Power BI For Tableau User !! Learn Power BI in Hindi !!
Proud to be a Super User!
!! Subscribe to my youtube Channel !!
Anonymous
Not applicable

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.

 

Solution:

 

Modify Target table to be by Territory - 

merge territory code , region and target togther. 

You can take Region from Region Table, not from Territory.

 

Screenshot 2019-12-07 11.04.58.png

 

Did I answer your question? Mark my post as a solution! Appreciate your Kudos!! !!
Dashboard of My Blogs !! Connect on Linkedin
Want To Learn Power BI
Learn Power BI Beginners !! Advance Power BI Concepts !! Power BI For Tableau User !! Learn Power BI in Hindi !!
Proud to be a Super User!
!! Subscribe to my youtube Channel !!

Helpful resources

Announcements
Microsoft Build 768x460.png

Microsoft Build is May 24-26. Have you registered yet?

Come together to explore latest innovations in code and application development—and gain insights from experts from around the world.

charticulator_carousel_with_text (1).png

Charticulator Design Challenge

Put your data visualization and design skills to the test! This exciting challenge is happening now through May 31st!

Power BI Dev Camp Session 22 768x460.jpg

Check it out!

Mark your calendars and join us on Thursday, May 26 at 11a PDT for a great session with Ted Pattison!