Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
4 years ago
Solved

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.

Has anyone a idea?

 

Thanks!

Mark

  • Anonymous's avatar
    Anonymous
    4 years ago

    Hi Anonymous ,

    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.

     

    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.

     

5 Replies

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

     

     

    Follow us on LinkedIn and  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.

    • Anonymous's avatar
      Anonymous
      Not applicable

      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

  • Anonymous's avatar
    Anonymous
    Not applicable

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

  • Anonymous's avatar
    Anonymous
    Not applicable

    Hi Anonymous ,

    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.

     

    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.

     

    • Anonymous's avatar
      Anonymous
      Not applicable

       

      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

      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