Quantcast
Channel: SCN : Discussion List - SAP HANA Developer Center
Viewing all articles
Browse latest Browse all 6412

Condition to find the distinct values in a column.

$
0
0

Hello All,

 

I have scenario like there is a sales order which has two line items in it.

 

For eg.

 

Sales_order     sales_guid     flag1        flag2

36000101          1234             0          Complete

36000101          5678             1          In-Progress

 

I have flag for the cases like,

 

if (flag1 > 0),'In-Progress','Complete' -> calculated column flag2

 

from the above calculated column I can filter out

flag2                    and                flag2

Complete                                   In-Progress

Complete                                   In-Progress


But now I need the flag for the below combination.


when there is a combination in              flag2              then        flag3          else     flag3

                                                       Complete                          x                            y

                                                      In-Progress                        x                            y


Kindly suggest me solutions how we can achieve it.  I am using graphical calculation view.


Regards,

Vicky.


Viewing all articles
Browse latest Browse all 6412

Trending Articles