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
vw_golf_mk3
Helper I
Helper I

3 tables with 2 bridge/map tables, How to display all 3 tables in 1 visual

hello @jdbuchanan71 and other PowerBiers,

 

I am having a model shown as below. 

concept.JPG

 

With the help of existing 2 mapping tables, T1_id and T2_id can be displayed in 1 visual, T2_id and T3_id can be displayed in another visual. They both filter on each other's selection.

 

The challenge here is how can I put T1_id, T2_id and T3_id all in 1 visual.

 

Attached is dummy data:

T1_id

T1_001
T1_002
T1_003
T1_004

 

T2_id

T2_001
T2_002
T2_003
T2_004

 

T3_id

T3_001
T3_002
T3_003
T3_004

 

T1_id      T2_id

T1_001T2_001
T1_001T2_002
T1_001T2_003
T1_004T2_004
T1_002T2_001

 

T2_id      T3_id

T2_001T3_001
T2_002T3_002
T2_002T3_003
T2_003T4_004
T2_001T4_004

 

Thanks in advance,

Brian

2 ACCEPTED SOLUTIONS
TomMartens
Super User
Super User

Hey,

 

I call the tables T1 and T3 remote tables as they are not connected by a "fact" table (this will not change if the filter direction will be changed to both).
In contrast to this I call the T1 and T2 "these are tabels are neighboring", the "hood" is given by the table "B1_2".

 

So if you have a simple measure like this:

Measure = 
COUNTROWS('T2')

It's possible to use columns from remote tables in the same visual:

image.png

As you can see this in a way "multiplies" the possible combinations.

This means

  • the measure has to be added to the visual to establish some kind of relationship (to avoid the error, it's necessary to add the measure to the visual before a remote column is added, to remember this can become difficult for the occasional user)
  • it can become difficult to write a measure that returns a reasonable value and otherwise BLANK()

Hopefully this provides some additional insights.

 

Regards,

Tom



Did I answer your question? Mark my post as a solution, this will help others!

Proud to be a Super User!
I accept Kudos 😉
Hamburg, Germany

View solution in original post

vw_golf_mk3
Helper I
Helper I

Now, after problem being solved. I found a similar pattern from stackflow in case any one is interested.Smiley Happy

https://stackoverflow.com/questions/43439014/erd-3-tables-in-1-relationship

View solution in original post

7 REPLIES 7
vw_golf_mk3
Helper I
Helper I

Now, after problem being solved. I found a similar pattern from stackflow in case any one is interested.Smiley Happy

https://stackoverflow.com/questions/43439014/erd-3-tables-in-1-relationship

vw_golf_mk3
Helper I
Helper I

@TomMartens 

I have to say your reply does give me some insights. Although it is adding in the measure brings t1 t2 and t3 illuminated, all combinations do not comply with provided mapping/bridge tables. 

 

Your print screen gave me an idea of creating a full outer join of b1_2 and b2_3 - b1_2_3, entailing a full mappping as shown below.

mapping1_2_3.JPG

And finally, with the help of b1_2_3, t1 t2 and t3 can be brought into one table preserving provided mappings as shown below. 

all_in_one_view.JPG

* some new lines have been added for testing purposes.

TomMartens
Super User
Super User

Hey,

 

I call the tables T1 and T3 remote tables as they are not connected by a "fact" table (this will not change if the filter direction will be changed to both).
In contrast to this I call the T1 and T2 "these are tabels are neighboring", the "hood" is given by the table "B1_2".

 

So if you have a simple measure like this:

Measure = 
COUNTROWS('T2')

It's possible to use columns from remote tables in the same visual:

image.png

As you can see this in a way "multiplies" the possible combinations.

This means

  • the measure has to be added to the visual to establish some kind of relationship (to avoid the error, it's necessary to add the measure to the visual before a remote column is added, to remember this can become difficult for the occasional user)
  • it can become difficult to write a measure that returns a reasonable value and otherwise BLANK()

Hopefully this provides some additional insights.

 

Regards,

Tom



Did I answer your question? Mark my post as a solution, this will help others!

Proud to be a Super User!
I accept Kudos 😉
Hamburg, Germany
Ashish_Mathur
Super User
Super User

Hi,

In the Query Editor, append Table1,3 and 5.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

append.JPG

Hi,@Ashish_Mathur 

Apending all 3 tables looks like above print screen. However, relationship between table 1 and table 2 or table 2 and table three are not preserved. 

 

Currently, the relationship looks like this. 

 relationship.JPG

To show associated entities to table2, visals have to be separated into 2 as shown below.

separate_vis.JPG

 

To re-iterate the challenge here is table visual does not render properly when T1, T2 and T3 id are brought into 1 visual. Error is shown below.

error.JPG

Hope this clarifies the issue.

tex628
Community Champion
Community Champion

You need to apply crossfilter direction both to all tables. So that they filter all the way throug.

image.png


Connect on LinkedIn

Unfortunately, having filtering propogation set to both does not solve this issue.

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.