Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
6 years ago

Dynamic Local Images

Hi Forum,

 

There is a way to make a slicer change the image, but not by url (online), by local drive?

 

Any help would be greatly appreciated.

2 Replies

  • Anonymous's avatar
    Anonymous
    Not applicable

    HI Anonymous ,

    I'd like to suggest you create a measure with seleceted value to extract selected value from the slicer, then you concatenate it with detail image path and use it on a table visual to display the graph. (notice: configure measure category to 'image URL')

    Measure = 
    VAR _url =
        SELECTEDVALUE ( 'Table 2'[Value], FIRSTNONBLANK ( 'Table 2'[Value], [Value] ) )
    VAR _path =
        SELECTEDVALUE ( 'Table'[Path], FIRSTNONBLANK ( 'Table'[Path], [Path] ) )
    RETURN
        IF ( _url <> BLANK (), _url & _path, BLANK () )
    

    Regards,

    Xiaoxin Sheng