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

The Power BI Data Visualization World Championships is back! It's time to submit your entry. Live now!

Reply
Greenleaf
Regular Visitor

Controlling Multiple Name Columns with One Master List Column

Hello, I have an issue I've been working on to no avail. I have two columns in my Main DAX query, one is MainQuery[ApproachedBy] and the other is MainQuery[SuitabilityBy]. ApproachedBy references the number of approaches an employee does, while SuitabilityBy references the number of deferrals. On a single case, the person who approaches and the person who determines suitabillity may be different people or the same person. For example:

CaseFileIdApproachedByConsentedSuitabilityByDeferral
10001James1Tammy1
10002Beth0Beth1
10003James1Beth0

 

Separately, I have another query from SQL that pulls in the master list of every employee name named EmployeeList[FullName].

Currently, I have one table that shows approaches, and one table that shows suitability determinations.

ApproachedByConsents
James9
Beth8

 

SuitabillityByDeferrals
Tammy7
Beth15

 

Is there a way to use the master list from EmployeeList[FullName] as a slicer which will control both tables simultaneously? So for example, if I choose 'Beth' from EmployeeList[FullName] it will filter approachedBy to Beths count, and suitabilityby to show Beths count?

Thank you for any help you can offer.

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Thank you for your reply , vanessafvg . Here I have a idea in mind, and I would like to share it for reference.

 

Hi @Greenleaf ,

 

Based on your description, l created simple data.

 

MainQuery

vlinhuizhmsft_0-1723094749863.png

EmployeeList:

vlinhuizhmsft_1-1723094749866.png

 

Please follow the steps below:


1.Create two measures:

 

Consents =CALCULATE ( COUNTROWS ( MainQuery ), MainQuery[Consented] = 1 )

Deferrals = CALCULATE( COUNTROWS(MainQuery), MainQuery[Deferral] = 1)

 

2.Create two new tables:

 

Table 1 = SUMMARIZE('MainQuery','MainQuery'[ApproachedBy],"Consents",'MainQuery'[Consents])

Table 2 = SUMMARIZE('MainQuery','MainQuery'[SuitabilityBy],"Deferrals",'MainQuery'[Deferrals])

 

3.Then create relationships between new tables and EmployeeList as follows:

 

vlinhuizhmsft_2-1723094819833.png

 

4.Create two tables using the fields of new tables, and add a slicer to your report using EmployeeList[FullName], the final results are as follows:

 

vlinhuizhmsft_3-1723094960724.png

 

vlinhuizhmsft_4-1723094993825.png

 

Best Regards,
Zhu
Community Support Team

 

If there is any post helps, then please consider Accept it as the solution  to help the other members find it more quickly.
If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

 

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Thank you for your reply , vanessafvg . Here I have a idea in mind, and I would like to share it for reference.

 

Hi @Greenleaf ,

 

Based on your description, l created simple data.

 

MainQuery

vlinhuizhmsft_0-1723094749863.png

EmployeeList:

vlinhuizhmsft_1-1723094749866.png

 

Please follow the steps below:


1.Create two measures:

 

Consents =CALCULATE ( COUNTROWS ( MainQuery ), MainQuery[Consented] = 1 )

Deferrals = CALCULATE( COUNTROWS(MainQuery), MainQuery[Deferral] = 1)

 

2.Create two new tables:

 

Table 1 = SUMMARIZE('MainQuery','MainQuery'[ApproachedBy],"Consents",'MainQuery'[Consents])

Table 2 = SUMMARIZE('MainQuery','MainQuery'[SuitabilityBy],"Deferrals",'MainQuery'[Deferrals])

 

3.Then create relationships between new tables and EmployeeList as follows:

 

vlinhuizhmsft_2-1723094819833.png

 

4.Create two tables using the fields of new tables, and add a slicer to your report using EmployeeList[FullName], the final results are as follows:

 

vlinhuizhmsft_3-1723094960724.png

 

vlinhuizhmsft_4-1723094993825.png

 

Best Regards,
Zhu
Community Support Team

 

If there is any post helps, then please consider Accept it as the solution  to help the other members find it more quickly.
If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

 

vanessafvg
Community Champion
Community Champion

create a new table which is a unique list of all the names in both tables.  and call it name (or something) make sure there are no duplicates.  then link both tables to the new table ie map a relationship from name to suitability by and name to approach by.  then use the new table as your slicer and it will filter both to that persons name if there is a valid record in both tables.





If I took the time to answer your question and I came up with a solution, please mark my post as a solution and /or give kudos freely for the effort 🙂 Thank you!

Proud to be a Super User!




Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! It's time to submit your entry.

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.