Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
admin11
Memorable Member
Memorable Member

How to link target table and sales table using Bridge ?

Hi All

 

I need to create sales target for my sales team. 

 

Step 1 :- I create Target Table as below :-

 

SOURCEdate_tGROUP_16 ODSE_target_sales_16
TS01-Jan-20MAX66,666.00
TS01-Feb-20MAX66,666.00
TS01-Mar-20MAX66,666.00

 

Step 2 i import the Target table to PBI :-

 

admin11_0-1615882268796.png

 

Step 3 I link the Target Table Date with master Calendar date . not issue. The issue come when i try to link the Sales Staff from Sales Table to GROUP_16 from Target Table. I get Relationship many-many.

admin11_0-1615882423963.png

STep 4 When i compute Sales vs target , i get below problem on sales amount wrong , as it cannot have same amount :-

admin11_0-1615882708410.png

Step 5 I have create a bridge table , but the amount from sales table still not display correctly at Target table :-

admin11_0-1615889896944.png

 

Hope some one can advise me.

 

Paul

1 ACCEPTED SOLUTION
v-janeyg-msft
Community Support
Community Support

Hi, @admin11 

 

According to your requirement, I modify your bridge table code, then you can put the bridge table field 'staff' in the table1's value.

Like this:

Group16 = 
// DISTINCT (
//     UNION (
//         SUMMARIZE ( SALES,  SALES[Sales Staff] ),
//         SUMMARIZE ( TARGET_16, Target_16[GROUP_16])
//     )
// )
INTERSECT(DISTINCT(SALES[Sales Staff]),DISTINCT(Target_16[GROUP_16]))

4.png

5.png

Best Regards

Janey Guo

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

7 REPLIES 7
v-janeyg-msft
Community Support
Community Support

Hi, @admin11 

 

According to your requirement, I modify your bridge table code, then you can put the bridge table field 'staff' in the table1's value.

Like this:

Group16 = 
// DISTINCT (
//     UNION (
//         SUMMARIZE ( SALES,  SALES[Sales Staff] ),
//         SUMMARIZE ( TARGET_16, Target_16[GROUP_16])
//     )
// )
INTERSECT(DISTINCT(SALES[Sales Staff]),DISTINCT(Target_16[GROUP_16]))

4.png

5.png

Best Regards

Janey Guo

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

@v-janeyg-msft 

WOW ,  you are very expert in link the table.

many thank

Paul

Hi, @admin11 

 

Thank you for your praise, I just try my best to realize your needs from your perspective. Can you give me kudos as a reward😊

 

Best Regards

Janey Guo

@v-janeyg-msft 

Done, i Owe you one drink.

v-janeyg-msft
Community Support
Community Support

Hi, @admin11 

 

Have your problem been solved? The shared file has been deleted. It's hard to judge by just view the screenshots, but it should be a problem between relationships. Many-to-many relationships are prone to problems. 

If you still need help, please feel free to ask me.

 

Best Regards

Janey Guo

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

@v-janeyg-msft 

 

Thank you for your sharing , i still unable to figure out how to solve my issue , below link is my PBI file :-

 

https://www.dropbox.com/s/yusevz6gyssb2po/PBT_V2021_371%20sample%20data%20v002%20link%20sales%20and%...

 

Paul

 

PhilipTreacy
Super User
Super User

@admin11 

Hi Paul,

I'm not sure what your question is.  It looks like you already have the table in PBI.  How do you want this target created?  What are the targets?  For what periods?  How do you want the targets displayed?

Regards

Phil



Did I answer your question? Then please mark my post as the solution.
If I helped you, click on the Thumbs Up to give Kudos.


Blog :: YouTube Channel :: Connect on Linkedin


Proud to be a Super User!


Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.