Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
5 years ago
Solved

Setting a default image in the image visual when no selection is made

Hi, I am using the image visual currently to display some logos. When I make a particular selection, the visual works fine. But when I don't make any selections, one particular logo is displayed by ...
  • Icey's avatar
    5 years ago

    Hi Anonymous ,

     

    Which visual are you using?

     

    If the visual supports to use Measure as value field, try these:

    Measure 1 = SELECTEDVALUE('Table'[Image])  -------support single selection and if nothing is selected, show blank.
    Measure 2 = IF(ISFILETER('Table'[YourSlicerValue]),MAX('Table'[Image])) -----support multiple selections

     

    If the visual doesn't support to use Measure as value field, try to use a card to cover it. Here is an example:

    https://exceleratorbi.com.au/show-or-hide-a-power-bi-visual-based-on-selection/

     

     

    Best Regards,

    Icey

     

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