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

Join the FabCon + SQLCon recap series. Up next: Power BI, Real-Time Intelligence, IQ and AI, and Data Factory take center stage. All sessions are available on-demand after the live show. Register now

Reply
dshah12
Helper II
Helper II

Regarding data modeling

 

I want to create relationship of employee with created by and approved by as they both have common manager name.

So basically I have filter of manager and in accordance to that I want to get data of total created by and approved by under specific manager 
I right now have relationship of Many -Many between Approved By and employee 

But when I am tracking for created by I am not getting accurate answers 

 

Created byApproved byitem
abcxyz2
xyzabc3

 

 

 

Employeemanager
abcbgh
xyzuij
1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @dshah12 ,

 

I suggest you to inactive the relationship between [Employee] and [Created by]/[Approved by].

vrzhoumsft_0-1685524087998.png

Measure:

Filter = 
IF (
    OR (
        MAX ( Table1[Approved by] ) IN VALUES ( Table2[Employee] ),
        MAX ( Table1[Created by] ) IN VALUES ( Table2[Employee] )
    ),
    1,
    0
)

Add this measure into visual level filter and set it to show items when value = 1.

vrzhoumsft_1-1685524186336.png

 

Best Regards,
Rico Zhou

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

View solution in original post

3 REPLIES 3
Anonymous
Not applicable

Hi @dshah12 ,

 

I suggest you to inactive the relationship between [Employee] and [Created by]/[Approved by].

vrzhoumsft_0-1685524087998.png

Measure:

Filter = 
IF (
    OR (
        MAX ( Table1[Approved by] ) IN VALUES ( Table2[Employee] ),
        MAX ( Table1[Created by] ) IN VALUES ( Table2[Employee] )
    ),
    1,
    0
)

Add this measure into visual level filter and set it to show items when value = 1.

vrzhoumsft_1-1685524186336.png

 

Best Regards,
Rico Zhou

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

Thanks a lot 
I wanted it to work out for all visuals on page as well as the cards 
How can I do that 

VijayP
Super User
Super User

@dshah12  Create a unique values of managers in another table and create to one to many to get the result




Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!
MY Blog || My YouTube Channel || Connect with me on Linkedin || My Latest Data Story - Ageing Analysis

Proud to be a Super User!


Helpful resources

Announcements
April Power BI Update Carousel

Power BI Monthly Update - April 2026

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

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.

FabCon and SQLCon Highlights Carousel

FabCon &SQLCon Highlights

Experience the highlights from FabCon & SQLCon, available live and on-demand starting April 14th.