Forum Discussion
Formatting card browser
Hello - I'm trying to create a card browser to visually show different resources by title, author, date, and thumbnail. I want when you click on one of the resource cards for it to be able to take you to an external site where that resource is located. I also don't want the pop-out to happen when you click on a card as its really empty because I don't have much information there. Right now, its only letting me put the link in the metadata field, so then it shows in the pop-out, and not letting when you hover over the card for it. Is there a way to disable the pop-out from happening and just have you move to the external site where the resource is? Thanks!
Hi camrich
Conditional formatting a card with with hyperlinks is currently not supported. You can create a measure that generates an SVG image that looks like a card, add it to a matrix viz and conditionally format using a hyperlink. Below sample is generated with the help of AI.
Please see the attached sample pbix.
5 Replies
- DataNinja777Super User
Hi camrich ,
In Power BI, Card visuals do not support direct hyperlinks, but you can achieve a similar effect using a Table, Matrix, or Button. To create a clickable link, define a DAX measure that constructs a hyperlink dynamically based on the resource URL. Use the following DAX measure:
Clickable Link = VAR ResourceURL = SELECTEDVALUE(Resources[URL]) RETURN IF( NOT(ISBLANK(ResourceURL)), "[Click here](" & ResourceURL & ")", BLANK() )This measure dynamically generates a clickable hyperlink that can be displayed in a Table or Matrix visual. To make it work, add the Title, Author, Date, Thumbnail, and Clickable Link columns to the Table visual, then enable URL Icon formatting in the Format Pane.
If you prefer a button-based approach, create a button in Power BI and set its action type to Web URL. Define the following measure to dynamically populate the button’s link:
Button URL = SELECTEDVALUE(Resources[URL])Next, configure the button’s Action settings in the Format Pane, selecting Web URL and choosing [Button URL] as the destination. This way, when a resource is selected, clicking the button will open the external site.
Since Power BI’s Card visuals do not support hyperlinks, using a Matrix or Table with conditional formatting, or implementing a button with dynamic navigation, provides a practical alternative. If you need a layout resembling cards, you might consider using a Gallery visual in Power BI. Let me know if you’d like help refining the UI further!
Best regards,
- danextianSuper User
Hi camrich
Conditional formatting a card with with hyperlinks is currently not supported. You can create a measure that generates an SVG image that looks like a card, add it to a matrix viz and conditionally format using a hyperlink. Below sample is generated with the help of AI.
Please see the attached sample pbix.
- AnonymousNot applicable
Hi camrich ,
We would like to follow up to see if the solution provided by the super user resolved your issue. Please let us know if you need any further assistance.
If our super user response resolved your issue, please mark it as "Accept as solution" and click "Yes" if you found it helpful.
Regards,
B Manikanteswara Reddy - AnonymousNot applicable
Hi @camrich ,
We would like to follow up to see if the solution provided by the super user resolved your issue. Please let us know if you need any further assistance.
If our super user response resolved your issue, please mark it as "Accept as solution" and click "Yes" if you found it helpful.
Regards,
B Manikanteswara Reddy - AnonymousNot applicable
Hi @camrich ,
We would like to follow up to see if the solution provided by the super user resolved your issue. Please let us know if you need any further assistance.
If our super user response resolved your issue, please mark it as "Accept as solution" and click "Yes" if you found it helpful.
Regards,
B Manikanteswara Reddy