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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
Anonymous
Not applicable

Measure that displays all text in an inactive relationship

Hello guys i have a table salemans: 

 

NameSalesman
AName1
BName1
CName1
DName1
EName1
FName1
GName2
HName2
IName2
JName2
KName3
LName3

 

so the slicer without a measure should show :

Name1
Name2
Name3

 

which is easy 

but i have a second table of call clients:

Name
A
B
C
D
E
F
G
H
I
J
K
L
O
P
Q
R
S
T
U
V

 

so if i select name 3, i want the table to display "K" and "L"

i created an inactive relationship between the 2 because i cant create a direct relationship

 

i know how to do the filter and userrelationship but i dont know how to select all names not only max.

it should look something like this:

measure = CALCULATE("Function to display the names" (Clienttable[name]),

FILTER (
ALLSELECTED ( Clienttable ),
        Clienttable[Name]
            IN FILTERS (Salesman[Name] )
),USERELATIONSHIP(Clienttable[Name],Salesman[Name]))
1 ACCEPTED SOLUTION
v-cazheng-msft
Community Support
Community Support

Hi @Anonymous ,

 

You may consider this solution.

1 Create Measure as follows

Filter Clients =
CALCULATE (
    COUNT ( clients[Name] ),
    TREATAS ( VALUES ( salemans[Name] ), clients[Name] ),
    FILTER ( clients, clients[Name] IN ALLSELECTED ( salemans[Name] ) )
)

 

2 Add this measure as the visual level filter of the Table visual created with clients column

vcazhengmsft_0-1663726346879.png

 

Attached the pbix file as reference.

 

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 let me know. Thanks a lot!

 

Best Regards,

Community Support Team _ Caiyun

View solution in original post

1 REPLY 1
v-cazheng-msft
Community Support
Community Support

Hi @Anonymous ,

 

You may consider this solution.

1 Create Measure as follows

Filter Clients =
CALCULATE (
    COUNT ( clients[Name] ),
    TREATAS ( VALUES ( salemans[Name] ), clients[Name] ),
    FILTER ( clients, clients[Name] IN ALLSELECTED ( salemans[Name] ) )
)

 

2 Add this measure as the visual level filter of the Table visual created with clients column

vcazhengmsft_0-1663726346879.png

 

Attached the pbix file as reference.

 

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 let me know. Thanks a lot!

 

Best Regards,

Community Support Team _ Caiyun

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 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.