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

Evaluate the expression which is located in table as a string.

I have a table like below which consists of expressions as feild values.

1.PNG

I need those expressions in this table to get evaluted when i load them into a straight table.

Thank you

1 Solution

Accepted Solutions
Peter_Cammaert
Partner - Champion III
Partner - Champion III

This document may be useful. A screnshot of the output (I added some data where needed).

Eval Expression in Straight Table thread210922.jpg

In the future, please don't post example data as a screenshot. Nobody likes copying text from an image...

Best,

Peter

View solution in original post

7 Replies
sunny_talwar

May be with a dollar sign expansion?

$(=Sheet_Name)

swuehl
MVP
MVP

This will only work with a single Sheet_Name as possible value.

If you want to create a table with dimension ID and using the appropriate expression per ID, I believe you need a pick() or pick(match()) solution:

Pick( ID,

Sum(Value),

Count(Value),

Avg(Value)

)

You can build this expression upfront as variable in the script using the table with ID and expressions and CONCAT() function.

edit: removed typo

petter
Partner - Champion III
Partner - Champion III

If you do this - you will keep the static strings as well:

     If( Flag = 1 , $(=Sheet_Name) , Sheet_Name )

Peter_Cammaert
Partner - Champion III
Partner - Champion III

Or you could quote the simple text strings in your original table. Which IMHO is more consistent with your original expression-based set-up.

Peter_Cammaert
Partner - Champion III
Partner - Champion III

This document may be useful. A screnshot of the output (I added some data where needed).

Eval Expression in Straight Table thread210922.jpg

In the future, please don't post example data as a screenshot. Nobody likes copying text from an image...

Best,

Peter

Peter_Cammaert
Partner - Champion III
Partner - Champion III

Actually and on second reading, this is just an illustration of Stefan's earlier explanation. Points should go to him.

MarcoWedel

Hi,

one example of Stefan's and Peter's solution in the front end only:

QlikCommunity_Thread_210922_Pic5.JPG

hope this helps

regards

Marco