Forum Discussion

Heinrich's avatar
Heinrich
Post Partisan
3 years ago
Solved

Filter Data

Hello

 

I would like that some data react as filter would that be possible.

The goal is when I press on the button then the data is shown on a separate field

 

Thank you for your help

 

Heinrich

  • Anonymous's avatar
    Anonymous
    3 years ago

    Hi Heinrich ,

     

    According to your description, here are my steps you can follow as a solution.

    (1) This is my test data.  

    (2) We can create two tables.

    Table = SUMMARIZE('MS Teams Incidents','MS Teams Incidents'[Ticket Number],'MS Teams Incidents'[Escalated])
    Table 2 = FILTER('Table','Table'[Escalated]="false")

    (3) Then the result is as follows.

     

    If the above one can't help you get the desired result, please provide some sample data in your tables (exclude sensitive data) with Text format and your expected result with backend logic and special examples. It is better if you can share a simplified pbix file. Thank you.

     

    Best Regards,

    Neeko Tang

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

11 Replies

  • Heinrich's avatar
    Heinrich
    Post Partisan

    Hello DataSlayer
    Thank you very much.
    I will try to do that
    Regards
    Juan

    • MAwwad's avatar
      MAwwad
      Solution Sage

      You are welcome.

       

      Dont forget to accept this as solution in order to help others 🙂

  • Anonymous's avatar
    Anonymous
    Not applicable

    Hi Heinrich ,

     

    According to your description, here are my steps you can follow as a solution.

    (1) This is my test data.  

    (2) We can create two tables.

    Table = SUMMARIZE('MS Teams Incidents','MS Teams Incidents'[Ticket Number],'MS Teams Incidents'[Escalated])
    Table 2 = FILTER('Table','Table'[Escalated]="false")

    (3) Then the result is as follows.

     

    If the above one can't help you get the desired result, please provide some sample data in your tables (exclude sensitive data) with Text format and your expected result with backend logic and special examples. It is better if you can share a simplified pbix file. Thank you.

     

    Best Regards,

    Neeko Tang

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

    • Heinrich's avatar
      Heinrich
      Post Partisan

      Hello v-tangjie-msft

      Thank you very much.

      I will give it a try. So I need to do additional 2 tables and then filter them out.

      Regards

      Juan

    • Heinrich's avatar
      Heinrich
      Post Partisan

      Hello v-tangjie-msft

      It worked fantastic.

      Thank you very much

      Juan

    • Heinrich's avatar
      Heinrich
      Post Partisan

      Hi v-tangjie-msft

      I worked as said. Can you have a button that closes specific visuals.

      Regards

      Juan

  • MAwwad's avatar
    MAwwad
    Solution Sage
    1. Create a new measure or calculated column that will filter your data based on the button press. For example, you can create a measure called "Filtered Data" that filters the data based on a selected value from a field called "Button Selection."

    2. Create a button in your report, and set the OnSelect property to update the value of "Button Selection" with the value of the button press.

    3. Create a card visual and bind it to the "Filtered Data" measure, and also you can use filter visual and bind it to the "Button Selection" field.

    4. Publish the report to the service and test the button and the filtered data.

    Please be aware that the filter in Power BI is applied on all visuals, if you want to show data on a separate field you may want to create a new visual and apply the filter only on that visual.

    • Heinrich's avatar
      Heinrich
      Post Partisan

      Hello DataSlayer

       

      I tried to do a measure

      Incidents_Escalated = 
      SELECTCOLUMNS(
          FILTER( 
          'MS Teams Incidents',
          'MS Teams Incidents'[Escalated] = "false"
          ),
          CALCULATE ('MS Teams Incidents'[Ticket Number])
      )

      The goal is to filter the column "Escalated" and show the column "Ticket number".

       

      But it does not seem to work.

       

      Do you have an idea?

      Regards

       

      Heinrich

    • Heinrich's avatar
      Heinrich
      Post Partisan

      Hello DataSlayer

      Step 1 has been done.

      Do you have an instruction on how to do Step 2? Would be great.
      Thank you
      Heinrich

  • Heinrich's avatar
    Heinrich
    Post Partisan

    Hi DataSlayer
    Thank you.

     

    How does the formula look like if I want to filter the data of:

     

    Show me all data that have been escalated or reassigned more than x times.

    Is the bottom needed can it be behind the the text or a number so as invisible. Once I klick on the visible field it is shown.

     

    Thank you

     

    Heinrich

     

  • Heinrich's avatar
    Heinrich
    Post Partisan

    Hello

    I have tried

    SUMMARIZECOLUMNS(
        'MS Teams Incidents'[Escalated],
        KEEPFILTERS( TREATAS( {"false"}, 'MS Teams Incidents'[Escalated] ))
    ) ORDER BY [Ticket Number] ASC
    That does not seem to work.
    Do you have an Idea
    Heinrich