Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
tango
Contributor III
Contributor III

Multiple URL in single field

Hi,

I am creating a URL for a specific field in Straight table through add link and then pasting the URL.

I have a requirement wherein I am suppose to represent 3 different links for that specific field like : If I have a field called ID so if(ID =1,'https://abc.com',

If(ID =2,'https://qwe.com,'https://asd.com'))

Can I add multiple links like this by using If?

Any advise will be great help!

 

Labels (1)
2 Solutions

Accepted Solutions
Or
MVP
MVP

I don't see why not, assuming each cell has a single URL associated with it.

View solution in original post

tango
Contributor III
Contributor III
Author

Got it sorted
=If(WildMatch(ID,'QW*'),'https://www.yahoo.com',
if(WildMatch(ID,'A*'),'https://www.google.com','wikipedia.com'))

View solution in original post

9 Replies
Or
MVP
MVP

I don't see why not, assuming each cell has a single URL associated with it.

tango
Contributor III
Contributor III
Author

Yes, but IF doesnot work in this. Any other way ?

Or
MVP
MVP

If() does indeed work this way:

=if(Dim2=1,'http://google.com','http://bing.com')

Or_0-1677669334621.png

 

Or_1-1677669357992.png

 

tango
Contributor III
Contributor III
Author

roopalichavan9274_0-1677673514972.png

roopalichavan9274_1-1677673561049.pngroopalichavan9274_2-1677673595715.png

 

So 3 different links for 3 IDs but same field.

Or
MVP
MVP

That doesn't look like a valid if() statement.

tango
Contributor III
Contributor III
Author

Sorry , I corrected it ,Thanks. That works. 

 

But what in case if I have string values

roopalichavan9274_0-1677675067266.png

Can you please help me with this , like using wildmatch and then the links

 

Or
MVP
MVP

Same thing, just a different If() statement. It doesn't matter if the ID is numeric or string, and it doesn't matter if you use ID = 1 or Match(ID,1).

tango
Contributor III
Contributor III
Author

Actually I have something like this

ABC124

ABC345

BCV111

BCV567

QWERTY900

QWERTY220

so for 

tango
Contributor III
Contributor III
Author

Got it sorted
=If(WildMatch(ID,'QW*'),'https://www.yahoo.com',
if(WildMatch(ID,'A*'),'https://www.google.com','wikipedia.com'))