Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
HenryJS
Post Prodigy
Post Prodigy

Hyperlink DAX code

Hi all,

 

I'm trying to create a hyperlink for a report but when inputting the below DAX I receive an error saying the CandidateREf cannot be determined?

 

1.

 

Link Error.PNG

 

Thanks,

 

Henry

1 ACCEPTED SOLUTION

Hi @HenryJS ,

 

Please check the following steps as below.

1# Select the calculated column and turn the Data category to Web URL.

1.PNG

2# Select the visual and select Format -> Values turn the URL icon to On.

2.PNG3.PNG

For more details please check the document below.

https://docs.microsoft.com/en-us/power-bi/power-bi-hyperlinks-in-tables#display-a-hyperlink-icon-ins....

 

Best Regards,

Jay

Community Support Team _ Jay Wang

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

Community Support Team _ Jay
If this post helps, then please consider Accept it as the solution
to help the other members find it.

View solution in original post

4 REPLIES 4
v-jayw-msft
Community Support
Community Support

Hi @HenryJS ,

 

You are creating a Measure instead of a Calculated column, please modify the DAX to

FORMAT(SELECTEDVALUE('table name'[column name]))

Or please right-click on the table or any column of the table and select new column to create a Calculated Column.

For more details about Measure and Calculated Column, please refer to the video below.

https://www.youtube.com/watch?v=SVEGfqCTodc.

 

Best Regards,

Jay

Community Support Team _ Jay Wang

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

Community Support Team _ Jay
If this post helps, then please consider Accept it as the solution
to help the other members find it.

Hi,

 

The calculated column now works and creates the desired hyperlink.

 

How do I create a button and link to the hyperlink as per image 2? At the moment it is just displaying image 1.

 

1.

Hyperlink 2.PNG

 

 

 

2.

Hyperlink.PNG

 

Thanks,

 

Henry

Hi @HenryJS ,

 

Please check the following steps as below.

1# Select the calculated column and turn the Data category to Web URL.

1.PNG

2# Select the visual and select Format -> Values turn the URL icon to On.

2.PNG3.PNG

For more details please check the document below.

https://docs.microsoft.com/en-us/power-bi/power-bi-hyperlinks-in-tables#display-a-hyperlink-icon-ins....

 

Best Regards,

Jay

Community Support Team _ Jay Wang

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

Community Support Team _ Jay
If this post helps, then please consider Accept it as the solution
to help the other members find it.
az38
Community Champion
Community Champion

Hi @HenryJS 

you are trying to create measure, not caculated column. measure requires some calculaion. try new column

 

do not hesitate to give a kudo to useful posts and mark solutions as solution


do not hesitate to give a kudo to useful posts and mark solutions as solution
LinkedIn

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.