Forum Discussion

saipawar's avatar
saipawar
Icon for Helper IV rankHelper IV
6 years ago
Solved

how to hyperlink text in table with another url field?

Hi,

 

I have two columns namely, 1- content name and 2-the web url/hyperlink.

How can I overlay the url such that the content name is clickable?

 

Should I create a new measure or  a column to capture this?

 

Thanks

 

3 Replies

  • AllisonKennedy's avatar
    AllisonKennedy
    Icon for Community Champion rankCommunity Champion

    It sounds like you already have the columns you need in column 1 and 2. Just put them both in a table and format using conditional formatting.

    EDIT: You actually only need to put the link text/description in the table, and apply conditional formatting to it by using field value and choosing URL as the field, first, ok.
    https://docs.microsoft.com/en-us/power-bi/create-reports/power-bi-hyperlinks-in-tables#format-link-text-as-a-hyperlink
    Make sure the link is formatted properly:
    URLS must start with one of the following:

    http
    https
    -mailto
    file
    ftp
    news
    telnet

  • v-alq-msft's avatar
    v-alq-msft
    Icon for Community Support rankCommunity Support

    Hi, saipawar 

     

    Based on your description, I created data to reproduce your scenario. The pbix file is attached in the end. 

    Table:

     

    You may create a table visual and then go to 'Visualizations'=>'Format'=>'Conditional formatting'=>set the 'Web URL' for 'Name' as 'On'.

     

    Finally you may click the corresponding 'Name' to go to specific link.

     

    Best Regards

    Allan

     

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

    • AllisonKennedy's avatar
      AllisonKennedy
      Icon for Community Champion rankCommunity Champion
      Thanks Allan @v-alq-microsoft for adding pictures and a file to the solution I suggested. 🙂

      saipawar can you please advise if this has been resolved? If you have more questions, let us know, otherwise please mark a solution so community knows this has been answered.
      Cheers!