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

Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote 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
Power BI DataViz World Championships

Power BI Dataviz World Championships

Vote for your favorite vizzies from the Power BI World Championship submissions!

Sticker Challenge 2026 Carousel

Join our Community Sticker Challenge 2026

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

January Power BI Update Carousel

Power BI Monthly Update - January 2026

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.