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

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.

Reply
Maerck
Frequent Visitor

List based on filter

Hi,

Im trying to get the output in a table based on a filter.

In a query I have customer ID's and Event ID's.

Some customers go to more then one event.

When a event is selected in a report, I want to see in another table to what other events these customer ID's also went

So in this example, when event ID 1001 is selected the output (in yellow) should show in the other table.

Maerck_0-1658346686705.png

Has anyone a idea?

 

Thanks!

Mark

1 ACCEPTED SOLUTION
v-rongtiep-msft
Community Support
Community Support

Hi @Maerck ,

I have created a simple sample, please refer to it to see if it helps you.

Create a table.

Table 2 = SUMMARIZE('Table','Table'[event id])

Then create a measure.

Measure =
VAR _select =
    SELECTEDVALUE ( 'Table 2'[event id] )
RETURN
    IF ( _select = SELECTEDVALUE ( 'Table'[event id] ), 1, 0 )

Then put the table2 [event id] into into the slicer.

Then filter measure.

vpollymsft_0-1658730065119.png

vpollymsft_1-1658730095563.png

vpollymsft_2-1658730108287.png

 

If I have misunderstood your meaning, please provide your pbix file without privacy information and more details with your desired output.

 

Best Regards
Community Support Team _ Polly

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

5 REPLIES 5
v-rongtiep-msft
Community Support
Community Support

Hi @Maerck ,

I have created a simple sample, please refer to it to see if it helps you.

Create a table.

Table 2 = SUMMARIZE('Table','Table'[event id])

Then create a measure.

Measure =
VAR _select =
    SELECTEDVALUE ( 'Table 2'[event id] )
RETURN
    IF ( _select = SELECTEDVALUE ( 'Table'[event id] ), 1, 0 )

Then put the table2 [event id] into into the slicer.

Then filter measure.

vpollymsft_0-1658730065119.png

vpollymsft_1-1658730095563.png

vpollymsft_2-1658730108287.png

 

If I have misunderstood your meaning, please provide your pbix file without privacy information and more details with your desired output.

 

Best Regards
Community Support Team _ Polly

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

 

 

Hi @v-polly-msft ,

First of all, thank you for your help.

 

Second, I'm not allowed to add a pbix or excel files, so some screenshots

screenshot pbix.jpg

The tab Events shows the eventnames. I want to create a drill through so event details will be shown.
One of the things I want to show in the drill through is:
The top x events that customers also visited.
So customerID x went to event ID y
To what other events then event ID y did this customer also go?
The output should be the top 10 or top 20 event names of the events that all customers of event ID y went to.

 

Hope it is more clear this way.

 

Kind regards,

Mark

Maerck
Frequent Visitor

Thank you for your reply. I will check it out and let you know if it worked!

parry2k
Super User
Super User

@Maerck this is one of my very 1st videos on youtube and I hope it helps. https://youtu.be/zS1IDl3DLak

 

 

Follow us on LinkedIn and YouTube.gif to our YouTube channel

I would  Kudos if my solution helped. 👉 If you can spend time posting the question, you can also make effort to give Kudos to whoever helped to solve your problem. It is a token of appreciation!

 

Visit us at https://perytus.com, your one-stop shop for Power BI-related projects/training/consultancy.



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

Hi @parry2k,

My mistake by calling it List based on FILTER.

So I've checked your video, thank you for that, and this is indead a list on Filter. I'm searching for a result wich is based on a drill through. (see my post to v-polly-msft)

Kind regards,

Mark

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.