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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

filter with two tables

Hi guys,

 

I have 2 tables, table A and Table B, both have a lot of columns and I have several relationships between boths.

One relationship (but not the active one) is "client" to "client". How could I make some dax which help me to get a filter visualization, with all the clients of both tables, merging when the client match in both tables?

 

Regards

Eduardo Silva

4 REPLIES 4
v-yingjl
Community Support
Community Support

Hi @Anonymous ,

Based on your description, not certain what is your expected output. As @ camargos88 mentioned, you can use Userelationship() to use the inactive relationship in dax, but what did "with all the clients of both tables, merging when the client match in both tables" represent seems not very clear.

Could you please consider sharing more details like some sample data or screenshots etc. for further discussion?

Sample data and expected output would help tremendously.
Please see this post regarding How to Get Your Question Answered Quickly:
https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490

 

Best Regards,

Yingjie Li

amitchandak
Super User
Super User

@Anonymous , please create common dimesions like client, date etc and try to build star schema. And join them with both the tables.

refer to my video on how to create that common/dimesnion table : https://youtu.be/Bkf35Roman8

 

Why Star Schema: https://www.sqlbi.com/articles/the-importance-of-star-schemas-in-power-bi/

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

 

To get the best of the time intelligence function. Make sure you have a date calendar and it has been marked as the date in model view. Also, join it with the date column of your fact/s. Refer :radacad sqlbi My Video Series Appreciate your Kudos.

 

Please provide your feedback comments and advice for new videos
Tutorial Series Dax Vs SQL Direct Query PBI Tips
Appreciate your Kudos.

camargos88
Community Champion
Community Champion

Hi @Anonymous ,

 

You can use the function USERELATIONSHIP to activate an inactive relationship while filtering:

https://docs.microsoft.com/en-us/dax/userelationship-function-dax



Did I answer your question? Mark my post as a solution!

Proud to be a Super User!



Anonymous
Not applicable

Hi, @camargos88 

 

Thank you so much for your support, but I've been using it for sum and mix some relationships, but I don't have clear what should I write after "calculate(" if I don't want any math, I just want the merge of both columns.

 

Regards

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

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.