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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
BOBALENIS
Frequent Visitor

data modelling

I have a fact table where each row contains different data at a local authority level.  There are therefore many rows regarding the same local authority.  I then have a dim/lookup table where I list a unique list of local authorities, so I can use this to slice my data.  All great so far.  Now I have a table that lists the local authority in one colum and in the next it lists all the other local authorities that are considered statistcally similar.( stat neighbours, see below).

 

e.g

LA Name  Stat Name

Waltham.    Eastbourn

Waltham.    Hasting

Waltham.    Borough

Wirral          Eastbourn

Wirral          Leeds

etc

 

OUTCOME: I would like to select a LA Name and the fact table is filtered according to the stat Names so I can show this data as a comparison for the LA Name - you might like to consider them as benchmarks, which are there to help the user undertsand if the selected LA Name is doing well or not 

 

PROBLEMS:  For each Local Authority you have many other local authorties that are stats neighbouts (up to 10 ish) Also, each local authority could be in one or more different stat neighbour groups.  

 

So using the example above the local authority 'Eastbourne' is a stat meighbour of both 'Waltham'. and 'Wirall' above. 

 

Solution 1.  is to create a many to many relationship between the stat neighbour LU/Dim table and the fact table. NOT IDEAL as you would prefer a 1 to many relationship here

Solution 2. You can use the LA dim/LU to create a bridge table between the stat neighbout and the fact table- this has limited success and you need to add bi directional flow- NOT IDEAL as you would ideally have the flow in one direction only

 

Is there a nicer solution that I am missing? 

 

THANKS SO MUCH

 

2 REPLIES 2
amitchandak
Super User
Super User

@BOBALENIS , Based on what I got. I think multiple join with authority table to fact. with one relation inactive and activate that using userelationship

 

refer :https://radacad.com/userelationship-or-role-playing-dimension-dealing-with-inactive-relationships-in...

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

Morning and wow- thank you so much for replying so swiftly. 

 

I am not sure I fully understand your idea but do you mean something like this? Thanks again

 

BOBALENIS_0-1618996909426.png

 

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Fabric Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.