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

We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now

Reply
Quenril
Resolver I
Resolver I

Get table visual to filter data via a relationship not in the data model

Hello,

 

I am seeking some help. I'm working with recruitment data and building dashboards for the line managers to see the activity and performance levels. In my dashboard I have a slicers from my 'Consultant lookup' table which can be used to drill down to Division, Team and Consultant levels.

 

In my data model, all of the [Consultant Name] fields connect to the person who owns the activity. For the 'Live Jobs' table, this is the column called [Job Owner]. Now my problem. For one table, I need the Consultant slicer to filter on a different column called [Referred by], instead of the column [Consultant Name] which is the connection in the data model. Please see the image below.

 

Connect to Referred by column.png

 Please can someone help? Is there any way to set up a secondary relationship in the data model?

 

Thank you so much

Quenril

 

1 ACCEPTED SOLUTION
Quenril
Resolver I
Resolver I

Hello parry2k,

 

Thank you for your response. I have linked the [Consultant Name] in my 'Consultant lookup' table with the [Referred by] column of my 'Live Jobs' table via na inactive relationship. I have then created the measure:

  

Count Rows =
CALCULATE( COUNTROWS('Live Jobs'), USERELATIONSHIP('Live Jobs'[Referred by], 'Consultant lookup'[Consultant Name]))
When I pull this measure into a table visual, it is giving me a count, when I want it to return the name of the Consultant in the [Referred by] column. Is there any way to amend this please?
Thank you
Quenril

 

View solution in original post

4 REPLIES 4
Quenril
Resolver I
Resolver I

Hello parry2k,

 

Thank you for your response. I have linked the [Consultant Name] in my 'Consultant lookup' table with the [Referred by] column of my 'Live Jobs' table via na inactive relationship. I have then created the measure:

  

Count Rows =
CALCULATE( COUNTROWS('Live Jobs'), USERELATIONSHIP('Live Jobs'[Referred by], 'Consultant lookup'[Consultant Name]))
When I pull this measure into a table visual, it is giving me a count, when I want it to return the name of the Consultant in the [Referred by] column. Is there any way to amend this please?
Thank you
Quenril

 

parry2k
Super User
Super User

@Quenril you can create a relationship with a reference column with consultant column which will be inactive, add a measure, and then use it as a visual level filter:

 

Row Count = 
CALCULATE ( COUNTROWS ( Youtable ), USERELATIONSHIP ( YourTable[Referece Column], ConsultantTable[Consultant Column ) ) 

 



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

Quenril
Resolver I
Resolver I

Hi parry2k,

Thank you for the quick response. 95% of my measures and other data visuals uses the 'Consultant Name' relationship that I have set up in the data model currently. I believe this is the only table which ideally requires a different relationship... Have you got any clever ideas? 😉

Thank you

Quenril

parry2k
Super User
Super User

@Quenril just wondering why not change the relation between consultant table to referred by column instead of having a relationship with consultant name?



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

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.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.