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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
ktkpatra
Frequent Visitor

Manage relationship

I am having trouble in relationship. I would like to know relationship in my Power BI desktop have same dataset with different year with 2 different file. I want make relationship Sales order number from both the dataset. Is it possible or something need to other way.. please let me know or call me to explain you more. Your help will be highly appreciated. thanks

 

ktkpatra_0-1641370913556.png

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @ktkpatra ,

 

Please refer:

SALES_DOC = DISTINCT(

                        UNION(
                        ALL('2020 ENI'[Sales Document]),

                        ALL('2020 HV_MH'[Sales Document]),

                        ALL('2021 ENI'[Sales Document]),
                        ALL('2021 HV_MH'[Sales Document])

                         )

                         ) 

 

Best Regards,

Jay

View solution in original post

3 REPLIES 3
ktkpatra
Frequent Visitor

Thanks for your reply.

In same way Power BI desktop have same dataset with different year with 4 different file. I want make relationship Sales order number from all the dataset and getting error as "Operator or expression '() is not supported in this context" below. Could you please help me 

 

ktkpatra_1-1641409576885.png

OR

ktkpatra_2-1641409655112.png

 

 

Anonymous
Not applicable

Hi @ktkpatra ,

 

Please refer:

SALES_DOC = DISTINCT(

                        UNION(
                        ALL('2020 ENI'[Sales Document]),

                        ALL('2020 HV_MH'[Sales Document]),

                        ALL('2021 ENI'[Sales Document]),
                        ALL('2021 HV_MH'[Sales Document])

                         )

                         ) 

 

Best Regards,

Jay

amitchandak
Super User
Super User

@ktkpatra , create a Bridge table, if that can help

https://www.seerinteractive.com/blog/join-many-many-power-bi/

 

Bridge Table: https://www.youtube.com/watch?v=Bkf35Roman8&list=PLPaNVDMhUXGaaqV92SBD5X2hk3TMNlHhb&index=19

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.