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
jamienourish
Frequent Visitor

Help with relationships

Morning, 

I am going to do my best to explain my problem, I have simplified the tables and removed data but wanted to show my relationships.

 

I am trying to create a table that has a list of level names and user locations. 

 

However due to the relationships I can't do this. I have been trying to create a measure to do a look up but get an extend list as it tries to give a location for each level for each user 

 

 

relations ship

1 ACCEPTED SOLUTION
prateekraina
Memorable Member
Memorable Member

Hi @jamienourish,

 

Created a calculated table from the DAX below and choose the columns from this table in your visual.

Location_Level =
SUMMARIZECOLUMNS (
    Location[LocationName],
    'Levels'[LevelName],
    "Default", SUM ( 'User Information'[UserID] )
)


Prateek Raina

View solution in original post

2 REPLIES 2
prateekraina
Memorable Member
Memorable Member

Hi @jamienourish,

 

Created a calculated table from the DAX below and choose the columns from this table in your visual.

Location_Level =
SUMMARIZECOLUMNS (
    Location[LocationName],
    'Levels'[LevelName],
    "Default", SUM ( 'User Information'[UserID] )
)


Prateek Raina

v-cherch-msft
Employee
Employee

Hi @jamienourish

 

You may try to use SUMMARIZECOLUMNS Function. Here’s the reference for you.

https://www.sqlbi.com/articles/introducing-summarizecolumns/

 

Regards,

Cherie

 

Community Support Team _ Cherie Chen
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

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.