Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hi all
I could find a solution althou it looks like somting simple...
I have a personal table (table 1 )with names of my emploies
Name ID
Ana 1
Bela 2
Elsa 3
Secound table (table 2) with task assinments
Task responsible
1 Ana
2 Bela
3 Elsa; Ana
4 Ana
I use a slicer with based ontable 1 to filter table 2 by the name.
How do I filter such that if I select Ana i will get all the rows where Ana apperes ?
Task responsible
1 Ana
3 Elsa; Ana
4 Ana
many thanks for your help
Eyal
Solved! Go to Solution.
Hi, @Eyal
Try measure formula as below:
filter =
VAR flag =
IF (
CONTAINSSTRING ( MAX ( Table2[responsible] ), MAX ( Table1[Name] ) ),
1,
0
)
RETURN
IF ( ISFILTERED ( Table1[Name] ), FLAG, 0 )
Then apply this new field to visual filter pane.
Best Regards,
Community Support Team _ Eason
Hi Eason
Your solution works great!! many thanks
I add a slight modification
filter = VAR flag = IF ( CONTAINSSTRING ( MAX ( Table2[responsible] ), MAX ( Table1[Name] ) ), 1, 0 )Var num =DISTINCTCOUNT('Table1'[Name]) // count to see how many names were selected
Hi Eason
Your solution works great!! many thanks
I add a slight modification
filter = VAR flag = IF ( CONTAINSSTRING ( MAX ( Table2[responsible] ), MAX ( Table1[Name] ) ), 1, 0 )Var num =DISTINCTCOUNT('Table1'[Name]) // count to see how many names were selected
Hi, @Eyal
Try measure formula as below:
filter =
VAR flag =
IF (
CONTAINSSTRING ( MAX ( Table2[responsible] ), MAX ( Table1[Name] ) ),
1,
0
)
RETURN
IF ( ISFILTERED ( Table1[Name] ), FLAG, 0 )
Then apply this new field to visual filter pane.
Best Regards,
Community Support Team _ Eason
@Eyal , One option is that you split responsible in power query using split by delimiter into rows. Then you can join both table on name and check
Or if select only one value and keep same format
countrows(filter( Table1, containsstring(Table2[responsible], selectedvalue(Table1[Name]) ) ))
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
111 | |
97 | |
80 | |
69 | |
59 |
User | Count |
---|---|
150 | |
119 | |
104 | |
87 | |
67 |