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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

Reply
Anonymous
Not applicable

Sales and target table how to link ?

Hi All

some one told me there should not be more then 1 link from one table to another table.

below is my data model, which have 4 link , it is okay ? 

Paulyeo11_0-1604149025629.png

 

 

1 ACCEPTED SOLUTION
Icey
Community Support
Community Support

Hi @Anonymous ,

 

How about just creating one Source & Group table instead of one Source table and one Group table?

Source & Group =
DISTINCT (
    UNION (
        SUMMARIZE ( SALES, SALES[SOURCE], SALES[GROUP_] ),
        SUMMARIZE ( TARGET, TARGET[SOURCE], TARGET[GROUP_] )
    )
)

source.JPGsource - re.JPG

 

 

 

Best regards

Icey

 

If this post helps,then consider Accepting it as the solution to help other members find it faster.

View solution in original post

5 REPLIES 5
Icey
Community Support
Community Support

Hi @Anonymous ,

 

Just like what @Anonymous mentioned, you can create 4 relationships between your Sales table and Target table. But only one relationship could be active.

To my knowledge, there is no need to establish so many relationships. It only needs to have a relationship to join the two tables together.

And for your tables, it is suggested to create relationships like so:

'Sales table'[Date] <-> 'Master Calendar'[Date] <-> 'Target table'[Date]

 

 

Best regards

Icey

 

If this post helps,then consider Accepting it as the solution to help other members find it faster.

 

Anonymous
Not applicable

Hi Icey & Nikhi

Thank you very much for comment on my post , i have read about active and in-active relationship , i know in-active relationship is refer to sales order date and ship date . but i don't know how to set it as in-active.

 

Hope you can look at my PBI file , and share with me how to link the sales and target and calendar table ?

 

https://www.dropbox.com/sh/39wicbv0s06601n/AABTPEdsxof2co-e6RGnfDxKa?dl=0

 

Paul Yeo

Icey
Community Support
Community Support

Hi @Anonymous ,

 

How about just creating one Source & Group table instead of one Source table and one Group table?

Source & Group =
DISTINCT (
    UNION (
        SUMMARIZE ( SALES, SALES[SOURCE], SALES[GROUP_] ),
        SUMMARIZE ( TARGET, TARGET[SOURCE], TARGET[GROUP_] )
    )
)

source.JPGsource - re.JPG

 

 

 

Best regards

Icey

 

If this post helps,then consider Accepting it as the solution to help other members find it faster.

Anonymous
Not applicable

Hi Sir

Wow you are good , this is what i look for.

My data model very neat now.

Thank you 

Paul

 

Anonymous
Not applicable

@Anonymous There can be multiple relationships between two tables, however only one can remain active and others would be inactive.

There can be some scenerio, where we need to use our inactive relationships, so we can use them by using a function in DAX called- USERELATIONSHIP.

Take a look over thia https://docs.microsoft.com/en-us/power-bi/guidance/relationships-active-inactive

 

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors