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
Anonymous
Not applicable

Creat more than one relationship

Hello,

 

I have created relationships between 3 sheets using a date table (green).

 

The 3 sheets also have similar data in the column BZ_20, BZ_21, BZ_Soll (yellow) which is the number of the Business Unit.

 

So when I visualize the sheets in one graphic I can filter by date but not by Business Unit. 

 

Since PowerBi wont allow more than one relationship, is there a workaround for that so I can also filter by Business Unit?

 

maroesberg_0-1627987986688.png

 

Thank you!

 

1 ACCEPTED SOLUTION
PC2790
Community Champion
Community Champion

Power Query --> Append Queries--> Append as new(it will constitute of the all the columns from your other tables)

In the transformation steps, remove all the columns those are not required -->Remove duplicates and your table is ready to be used as slicer.

View solution in original post

5 REPLIES 5
Anonymous
Not applicable

Hallo @PC2790,

 

now it works, thank you!

v-xulin-mstf
Community Support
Community Support

Hi @Anonymous

 

You can use USERELATIONSHIP function to apply more then one active relationship.

For more information, you refer the following blog.

https://blog.pragmaticworks.com/powerbi-dax-function-userelationship-explained

If you still have some question, please don't hesitate to let me known.‌‌

 

Best Regards,

Link

 

Is that the answer you're looking for? If this post helps, then please consider Accept it as the solution. Really appreciate!

 

PC2790
Community Champion
Community Champion

Hello @Anonymous ,

 

Try creating a new table with all the unique values of Business Unit.

You can do that in Power Query by appending this column from all tables.

Then use the business unit as a slicer/filter from the newly created table for your requirement.

 

Thanks

 

Anonymous
Not applicable

Hallo @PC2790,

 

I created a new table: Power Query --> new Query --> combine --> combine and add as new Query (marked the BZ columns from each table that I want to filter in the graphic)

 

Then I used the BZ-column of the new created table as slicer but it does not affect the graphic.

 

Is there something I missed? 

PC2790
Community Champion
Community Champion

Power Query --> Append Queries--> Append as new(it will constitute of the all the columns from your other tables)

In the transformation steps, remove all the columns those are not required -->Remove duplicates and your table is ready to be used as slicer.

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.