Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hello,
i'm connecting qv with mysql db and i have a varchar field like this :
Column:
10+22
3-4
15+10
...
in the load script or in a chart i want to evaluate each row so i'll get :
Column
32
-1
25
i don't want to use subfield in the load script because it duplicate rows.
the function evaluation returns 0.
any idea how to do it ?
Hi,
one front end solution could be:
=Pick(Match(column,'$(=Concat(column,chr(39)&','&chr(39)))'),$(=Concat(column,',')))
hope this helps
regards
Marco
Use the Evaluate() function :
Load
Evaluate(Column) as Evaluated ,
*
;
LOAD * INLINE [
Column
10+22
3-4
15+10
];
i already tried this but when data come from mysql db the result is different (it's return 0)
Maybe force it to Text before the Evaluate :
Load
evaluate ((Text(Column)) as Evaluated ,
*
;
LOAD * INLINE [
Column
10+22
3-4
15+10
];
nothing
Works with a basic Inline Load, something must different with your actual data. Could you share a small qvd with some sample data ?
here's a qvd file
With that qvd it works fine like this :
LOAD
column ,
Evaluate(column)
FROM
test.qvd
(qvd);
qvw file attached.
it's will drive me crazy !!
your file works fine , but if i copy your script into my own file it's won't work :-(((
What if in your script you :