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

Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM. Register now.

Reply
chrisl_jffd
Frequent Visitor

How can I create a DAX measure that is a string url that references another column?

I am trying to create a DAX Measure in my Fabric Power BI Model. I want to use this column to build a url from the id column so I can use it to conditionally format the id in a report table as a url. I can't figure out how to reference the id column correctly. I know you can use SUM to reference other column types, but my id column is a string and SUM wont work.

 

link = "https://xxxxxx.lightning.force.com/lightning/r/OrderSummary/" & SELECTEDVALUE(salesforce_order_summary[id]) & "/view"

 

 

The above just results in: https://xxxxxx.lightning.force.com/lightning/r/OrderSummary//view

1 ACCEPTED SOLUTION
lbendlin
Super User
Super User

SELECTEDVALUE returns BLANK if it doesn't find exactly one value. Evaluate why you have multiple values selected, and consider using an aggregate like MIN or MAX if applicable.

View solution in original post

3 REPLIES 3
lbendlin
Super User
Super User

SELECTEDVALUE returns BLANK if it doesn't find exactly one value. Evaluate why you have multiple values selected, and consider using an aggregate like MIN or MAX if applicable.

Does MIN/MAX work with a string? I did figure out what was wrong, I had a type in the column name.

yes, MIN/MAX works with strings

 

Helpful resources

Announcements
October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.