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! Request now

Reply
OPS-MLTSD
Post Patron
Post Patron

Create relationship between two tables that don't have unique values without creating a third table

Hello,

 

I have a table (Clients) that looks like this:

 

Client IDStarts Fiscal YearService Start DateExits Fiscal YearService Exit Date
12342020-2021February 1, 20202021-2022November 18, 2021
12432021-2022January 10, 2022NULL (service not ended yet) 
13562020-2021April 16, 20202021-2022October 30, 2021
13672019-2020January 18, 20192020-2021December 1, 2020
14232021-2022February 21, 2021NULL 

 

 

I have another table (Targets) that looks like this:

 

Business IDFiscal YearCategoryProposed amount of people
445672021-2022Client Starts1300
445672021-2022Client Exits1000
445672020-2021Client Starts1200
445672020-2021Client Exits900
445672019-2020Client Starts800
445672019-2020Client Exits600
837262021-2022Client Starts 1350

 

These two tables (Clients and Targets) are connected to another table, Business table (Clients table is connected to Business table via Client ID. This is an inactive relationship) and (Targets table is connected to Business table via Business ID)

 

I am trying to create a relationship between the Clients and Targets table via fiscal Year.

Now I am familiar with the concept of creating a unique fiscal year table and then connect it to both the Clients and Targets table.

Normally, this approach would suffice but the problem is, my Service Start fiscal year is different than my Exits Fiscal Year, that is why I have two different fiscal Year columns in my Clients table.

So my question is, how can I connect the Targets and Clients table so that I can do analysis such as compare actual “Client Starts” to targeted “Client Starts” for the fiscal year 2021-2022; or compare actual “Client Exits” to targeted “Client Exits” for the fiscal year 2020-2021?

 

Please note: Fiscal Year 2019-2020: January 1, 2019 to January 31, 2020

                     Fiscal Year 2020-2021: February 1, 2020 to January 31, 2021

                     Fiscal Year 2021-2022: February 1, 2021 to January 31, 2022

 

If someone could please help me figure this out, I would really appreciate it!  

4 REPLIES 4
Anonymous
Not applicable

Hi @OPS-MLTSD 

When you use a column in table A to compare the two columns in table B , USERELATIONSHIP() can help you . As we all know , there can only one active relationship between two tables, if you want to create two relationships between two tables , you need use USERELATIONSHIP(). I have done a case related to USERELATIONSHIP() before, you can refer to my case.

https://community.powerbi.com/t5/Desktop/Show-Purchased-Returned-Date-using-Calendar-Table/td-p/2299...

 

Best Regard

Community Support Team _ Ailsa Tao

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

@Anonymous thanks for sharing the info, I am a bit confused, how do I createa relationship between the Clients and Targets table in the first place? As I said, the only similar column between these two tables are the Fiscal Year columns but they do not contain unique values. Thanks, appreciate your help 🙂

aj1973
Community Champion
Community Champion

Hi @OPS-MLTSD 

In both of your tables you have Business ID and Fiscal Year Columns, Concatenate the 2 columns in both tables so you can have BusinessID-Fiscal Year then join both tables through these newly added columns

Regards
Amine Jerbi

If I answered your question, please mark this thread as accepted
and you can follow me on
My Website, LinkedIn and Facebook

It seems that I might have copied the table columns wrong, thanks for finding the mistake 🙂 I fixed it. Business ID is only present in the Targets table and Business Table, it is not present in the Clients table. 

Thank you

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

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!

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