Skip to main content
Announcements
See what Drew Clarke has to say about the Qlik Talend Cloud launch! READ THE BLOG
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Dollar $ Expansion Expression and Division

During my load script I'm loading in numerous expressions from a master file (currently in an Excel workbook).   I've also created an inline table, RoundTo, to let the user apply rounding. The values are 1, 1000, and 1000000.

When I add my expression I'm setting the definition as =$(e_My_Expression) and it works just as expected.  However, when I try to apply my rounding using =$(e_My_Expression)/RoundTo the division is completely ignored.

Any suggestions?

Thanks in advance,

Mark

6 Replies
tresesco
MVP
MVP

Could you share your sample app?

Anonymous
Not applicable
Author

I guess the problem is that RoundTo field is having 3 values.

so, when you are dividing ur expression with 'RoundTo' field then its not taking any of the value.

You need to select atleast one value of RoundTo field all the time so that it takes one value and divide it with your expression.

Regards

Erika

Not applicable
Author


Hi Erika - I do have the restriction applied, so that doesn't seem to be the issue.  The app has a list box with 1, 1000, and 1000000 with "always one selected value" enabled.

tresesco
MVP
MVP

Have a look at the attached sample. Hope this helps.

Not applicable
Author

For some odd reason it works if I put the expression in an Inline load (like you did), but if I load in from Excel is does not work.

Gysbert_Wassenaar

If you load the expressions from excel they're just text values. You can't expand those to get a different expression for each row. If you want that kind of thing you'll have to create a variable that contains pick-match expression. See this discussion: Expressions in Fields


talk is cheap, supply exceeds demand