Quantcast
Channel: Pentaho Community Forums - BI Platform
Viewing all articles
Browse latest Browse all 2893

If Null than other field content

$
0
0
Hello

I have a table with products that should belong to a main-category and sub-category. However, there are some products that don't have a sub-category. In this case the set should receive the content of the main-category in the field of the sub-category. I tried it with a java expression (that didn't work). See my attached transformation.

1. Is there a way without java expression to solve this?
2. If not, how does my expression have to look like?
3. I wonder if the whole transformation could be achieved with less steps? Do you see steps right away that you would change by others? I am curious and want to learn.

Many thanks!
zioso
Attached Files

Viewing all articles
Browse latest Browse all 2893

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>