Skip to Content

SAP HANA GRAPHICAL UNION NODE TO AVOID NULL VALUES

Hi All,

As per my requirement, I have created the Cube with Union node

Step1: let us consider two facts table shop_facts and promotion facts and this projection are joined union node

mapping with many to 1 relationship in target and few columns are mapped with 1:1 (source and Target )
issue; when the source column mapped one to one target data is populating the null values which are representing the symbol (?) the null values should replace with values Siva

Step2: This is method has developed to get my expected results

Step3: How to avoid null values when I'm trying to case condition at projection 3 getting error error.jpeg

error.jpeg (195.4 kB)
Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Posted on Aug 03, 2020 at 08:07 AM

    The CASE expression is not supported within a calculated column.

    In SQL mode you can try if the COALESCE function is supported (guess not):

    COALESCE("MARGIN", 'ram')

    If it is not supported you can switch to a calc. engine expression and use the IF and ISNULL functions:

    IF(ISNULL("MARGIN") = 1, 'ram', "MARGIN")
    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.