Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
5 years ago
Solved

Hopeful question

Hi all

 

Hoping you might have a definitive answer for this one.

 

My client has asked if it is possible to use text to determine what visuals are shown in the report. I am aware of the 'Text Filter' visual and how it can filter out specific data in various visuals, however in this instance it would be to determine what visuals are on display in the report itself.

 

For example in my report if I had 4 separate cards with the following:

  1.  Orange Sales - 50
  2. Apple sales - 80
  3. Orange price - £0.45
  4.  Apple price - £0.30

Is it possible to manipulate the 'Text Filter' visual in such a way that if my user typed in 'Orange' (for example), that either a bookmark, or other solution, triggers to show only cards 1 and 3 in this instance, whilst hiding cards 2 and 4.

 

A hopeful one, but interested to see any responses.

 

Thanks all.

  • Anonymous's avatar
    Anonymous
    5 years ago

    Hi Anonymous ,

    I updated my sample pbix file, you can get it from this link. The updated information as below:

    1. Add a Text Filter visual

    2. Create a measure as below and create two mask cards used this measure

    Message = 
       IF(
          ISFILTERED('Fruits'[Fruit]),
          "",
          "You must input any value in text filter to see the results"
       )

    3. Create a measure to display or hidden the cards and format the background color of mask cards with this measure

    Make Transparent = 
          IF(
             ISFILTERED('Fruits'[Fruit]),
             "#FFFFFF00",
             "White"
          )

    Best Regards

    Rena

9 Replies

    • Anonymous's avatar
      Anonymous
      Not applicable

      Hi CNENFRNL 

       

      Thansk for taking the time to respond. Indeed, that thread came up when I was searching for answers to this particular problem.

       

      That thread talks about data in tables, whereas my query revolves around the visibility of the card visual.

       

      Appreciate you responding though 🙂

      • Anonymous's avatar
        Anonymous
        Not applicable

        Does anyone else have any ideas on this subject?