Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

conditonally show link or text in table

HI,

In Qlikview table, we can set the representation of an expression as link or text in the expression properties of the chart. Is it somehow possible to conditionally see if the string has a link, then show that as a link, otherwise show it as a non clickable text?

Regards

Shah

1 Solution

Accepted Solutions
MayilVahanan

hi

Try like this

=If(Condition, 'Google<URL>'&'WWW.Google.com', TextExpression)

For Example

Year Test
20102010
20112011
20122012
20132013
20142014
2015Google


=If(Year = 2015, 'Google<URL>'&'WWW.Google.com', Year)

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.

View solution in original post

6 Replies
Anonymous
Not applicable
Author

Hi,

You can create two expression out which one represented as text and other as link.

These expressions can be Conditionally shown/hidden easily...

Hope this works

Regards

Nitin

MayilVahanan

hi

Try like this

=If(Condition, 'Google<URL>'&'WWW.Google.com', TextExpression)

For Example

Year Test
20102010
20112011
20122012
20132013
20142014
2015Google


=If(Year = 2015, 'Google<URL>'&'WWW.Google.com', Year)

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.
Not applicable
Author

The problem is that there will be many records. Some of them will be links and some of them will be text. However, your solution will still be showing only one type at a time. So all records will be either text or all records will be links

Shah

Not applicable
Author

This looks like it might be the solution I am looking for.

Many thanks both,

Shah

jonathandienst
Partner - Champion III
Partner - Champion III

A link must have the structure of displaytext<url>linktext. If you conditionally leave out the "<url>" part, the text will no longer be clickable, even though the representation is set to "Link".

Logic will get you from a to b. Imagination will take you everywhere. - A Einstein
qlikviewwizard
Master II
Master II

Hi Syed,

Please close the thread by selecting Correct Answer and Helpful as you already got the solution. Thank You.