March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
Hi
The below table is a fictional list of cities, people and age.
City | Name | Age |
Liverpool | Tom | 30 |
Liverpool | Jill | 15 |
Liverpool | Jim | 26 |
Liverpool | Sophie | 32 |
Liverpool | Lynsey | 20 |
Liverpool | Helen | 33 |
Liverpool | Mary | 20 |
Liverpool | Jen | 31 |
New York | Helen | 22 |
New York | Mary | 15 |
New York | Tom | 24 |
New York | Jon | 26 |
La Paz | Bren | 24 |
La Paz | Mel | 33 |
La Paz | Helen | 25 |
La Paz | Ruby | 22 |
La Paz | Jim | 20 |
Beijing | Jill | 29 |
Freetown | Bren | 30 |
Durban | Sarah | 16 |
Durban | Sophie | 30 |
Madrid | Jill | 16 |
Madrid | Tom | 31 |
Madrid | Mary | 15 |
Madrid | Helen | 24 |
Madrid | Jon | 28 |
Madrid | Mark | 30 |
What I'm hoping to do is, when a name is selected, it Power BI will show all groups they belong to and all other members of the groups, including their ages.
Examples
If Tom is Selected
City | Name | Age |
Liverpool | Tom | 30 |
Liverpool | Jill | 15 |
Liverpool | Jim | 26 |
Liverpool | Jon | 32 |
Liverpool | Lynsey | 20 |
Liverpool | Helen | 33 |
Liverpool | Mary | 20 |
Liverpool | Jen | 31 |
New York | Helen | 22 |
New York | Mary | 15 |
New York | Tom | 24 |
New York | Jon | 26 |
Madrid | Jill | 16 |
Madrid | Tom | 31 |
Madrid | Mary | 15 |
Madrid | Helen | 24 |
Madrid | Jon | 28 |
Madrid | Mark | 30 |
If Jill is Selected
City | Name | Age |
Liverpool | Tom | 30 |
Liverpool | Jill | 15 |
Liverpool | Jim | 26 |
Liverpool | Jon | 32 |
Liverpool | Lynsey | 20 |
Liverpool | Helen | 33 |
Liverpool | Mary | 20 |
Liverpool | Jen | 31 |
Beijing | Jill | 29 |
Madrid | Jill | 16 |
Madrid | Tom | 31 |
Madrid | Mary | 15 |
Madrid | Helen | 24 |
Madrid | Jon | 28 |
Madrid | Mark | 30 |
If Sophie is Selected
City | Name | Age |
Durban | Sarah | 16 |
Durban | Sophie | 30 |
I hope that makes sense and hope it's achievable.
Thanks in advance.
mcspy
Solved! Go to Solution.
Hi @drewmcspy,
If by groups you mean cities and your dataset is relatively small, you could use such a solution:
1) Create a full copy of your table.
2) Link the original table and the duplicate via [City] (many-to-many).
3) In the slicer, you could use the duplicate table, in the table visual - the orinal one.
BTW, the "Sophie" test case is not quite correct - there is another Sophie in Liverpool.
Here is the scheme:
Best Regards,
Alexander
Hi @drewmcspy,
If by groups you mean cities and your dataset is relatively small, you could use such a solution:
1) Create a full copy of your table.
2) Link the original table and the duplicate via [City] (many-to-many).
3) In the slicer, you could use the duplicate table, in the table visual - the orinal one.
BTW, the "Sophie" test case is not quite correct - there is another Sophie in Liverpool.
Here is the scheme:
Best Regards,
Alexander
Exactly what I needed, thanks
(completely right about Sophie too 😀)
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
123 | |
85 | |
85 | |
70 | |
51 |
User | Count |
---|---|
205 | |
153 | |
97 | |
79 | |
69 |