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 to create 2 slicers that displays name with 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 main 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 slicer 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-zhangti
Community Support
Community Support

Hi, @Anonymous 

 

vzhangti_2-1663662066810.png

You can try the following methods.

Measure = CALCULATE(MAX('Table 2'[Name]),USERELATIONSHIP('Table 2'[Name],'Table'[Name]))
Measure 2 = IF([Measure] in VALUES('Table'[Name]),1,0)

Place Measure2 in name slicer and set equal to 1.
Result:

vzhangti_0-1663662020064.pngvzhangti_1-1663662037318.png

Is this the result you expect?

 

Best Regards,

Community Support Team _Charlotte

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

2 REPLIES 2
v-zhangti
Community Support
Community Support

Hi, @Anonymous 

 

vzhangti_2-1663662066810.png

You can try the following methods.

Measure = CALCULATE(MAX('Table 2'[Name]),USERELATIONSHIP('Table 2'[Name],'Table'[Name]))
Measure 2 = IF([Measure] in VALUES('Table'[Name]),1,0)

Place Measure2 in name slicer and set equal to 1.
Result:

vzhangti_0-1663662020064.pngvzhangti_1-1663662037318.png

Is this the result you expect?

 

Best Regards,

Community Support Team _Charlotte

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

PabloDeheza
Solution Sage
Solution Sage

Hi there!

If you want a slicer from one table to be filtered by a slicer from another table you can use this measure and apply it in the filter pane, in the filter pane you should select "Cross Dim Filter is 1"

Cross Dim Filter = INT ( NOT ISEMPTY ( ‘YourFactTable’ ) )

PabloDeheza_0-1663617955841.png

 

 Let me know if that helps!

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!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

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