Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
5 years ago
Solved

Dynamic Web URL Link upon User Slicer Selection

Hi Anonymous ,

 

I am trying to have a dynamic button redirecting to a web link which varies upon the user slicer selection. Could you help? 

 

Many thanks,

 

Astrid.

  • Migasuke's avatar
    Migasuke
    5 years ago

    Hi Anonymous ,

    There is one more thing, you need to set type in measures:

     

4 Replies

  • Migasuke's avatar
    Migasuke
    Memorable Member

    Hi Anonymous ,

    This is quite simple to do.
    1. Do a measure, which reflects your slicers and return you the URL.
    Something like Measure = SelectedValue('Table'[WebUrlColumn])
    2. Create a Button, where you select action for Web URL, go to fx options and select your created measure:



    In case you would struggle, let me know.

  • Anonymous's avatar
    Anonymous
    Not applicable

    Thanks for replying, Migasuke. This is still not working, here is what I am trying to do in more details:

     

    I want the user to select either the "English" or "Mandarin" language, as shown below:
     

     

    And then have a button that redirect the user to the correct web link, in English or Mandarin language. So I have affected a value to each language, "English"=1 and "Mandarin"=2 in my table with two columns. And then I have created this measure below:

     

    URL = IF(Guidance_SEL[Value]=1), "XXXX.com","YYYY.com").

     

    But this is still not working...

    • Migasuke's avatar
      Migasuke
      Memorable Member

      Hi Anonymous ,

      There is one more thing, you need to set type in measures:

       

      • Anonymous's avatar
        Anonymous
        Not applicable

        Hi Migasuke, Brilliant it's working now thanks a lot!