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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Don-Bot
Helper V
Helper V

Create a dynamic URL with data from a paramater and table

Is there an efficient way to dynamically create a URL that a user can throw into table where they can follow the generated links?  My first attempt at this generates a URL but it is incredibly inefficient and takes forever to load if the client has a medium/large data footprint.

 

I currently have a fact table like this:

 

TicketIDTicketReferenceDate
123dfj4/15/2025
456asdf4/15/2025
980dfe4/17/2025

 

I then have a parameter named "url_base" which is something like:  "https://www.MYCOMPANY.com/PROGRAM/Tickets/Viewt.aspx?ID="

And I want to concatenate the date as a value yyyy/M/d and then concatenate the ticketreference

this is my attempt that is inefficient

URL =

Var Base_URL = "https://www.MYCOMPANY.com/PROGRAM/Tickets/Viewt.aspx?ID="
var Date= CONCATENATE(Base_URL,FORMAT(Ticket[Date], "yyyy/M/d"))
var TicketReference= CONCATENATE("*",Fact[TicketReference])
RETURN

CONCATENATE(Date,TicketReference)

 

Is there a better way to do this or do I need to create a calculated column?

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@Don-Bot , In DAX , assuming Ticket is master table
new column in fact
= "https://www.MYCOMPANY.com/PROGRAM/Tickets/Viewt.aspx?ID=" & format(related(Ticket[Date]), "yyyy/mm/dd"  & "*" & Fact[TicketReference]

 

If power query refer

https://blog.crossjoin.co.uk/2016/08/16/using-the-relativepath-and-query-options-with-web-contents-i...

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

View solution in original post

4 REPLIES 4
amitchandak
Super User
Super User

@Don-Bot , In DAX , assuming Ticket is master table
new column in fact
= "https://www.MYCOMPANY.com/PROGRAM/Tickets/Viewt.aspx?ID=" & format(related(Ticket[Date]), "yyyy/mm/dd"  & "*" & Fact[TicketReference]

 

If power query refer

https://blog.crossjoin.co.uk/2016/08/16/using-the-relativepath-and-query-options-with-web-contents-i...

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

@amitchandak , so basically a calculated column?

@Don-Bot , yes. If not we can create a measure, but there we have to use MAX on the columns. And that will adjust as per visual

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

@amitchandak , thanks for the help but that is what i have.  And unless there is a better way to do than what I have above then it doesn't work for me.  I get time out errors and it actually has caused me overages.  

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.

Top Solution Authors
Top Kudoed Authors