Oracle Analytics Cloud and Server

Welcome to the Oracle Analytics Community: Please complete your User Profile and upload your Profile Picture

Merge or combine multiple rows into one row in BI Answers

Received Response
919
Views
6
Comments
Joe Choueiri-Oracle
Joe Choueiri-Oracle Rank 5 - Community Champion

can I Merge or combine multiple rows into one row in BI Answers?

Answers

  • Yes, maybe, no: it depends ...

    Define "merge or combine multiple rows into one row".

  • Joe Choueiri-Oracle
    Joe Choueiri-Oracle Rank 5 - Community Champion

    Thanks @Gianni Ceresa

    Image on top is how it is today, trying to have it as the image underneath


  • So you would like to have a text column as a measure with an aggregation (because the amount will automatically aggregating assuming it's a measure and not an attribute). If your source is an Oracle Database you can use the LISTAGG function and call it from your analysis by using evaluate and defining all you need there inside.

    There are many example of calling LISTAGG with evaluate in OBIEE if you google for that.

  • Joe Choueiri-Oracle
    Joe Choueiri-Oracle Rank 5 - Community Champion

    Thank @Gianni Ceresa I created the below formula in a column and worked in OBIEE answers but not in DV, in DV the same value kept repeating, the first value of the 4


    EVALUATE_AGGR('LISTAGG(%1,%2) WITHIN GROUP (ORDER BY %3 DESC)',PRODUCT)

  • Well, your title says "BI Answers" and DV is a different product in the end, even if it still relies on the BI Server to get data out.

    It could depends on many things: what you workbook is based on, how is the dataset defined etc.

    As DV doesn't have an explicit definition of measures and attributes it is a bit more tricky to get it to group by at the right level etc.

  • Joe Choueiri-Oracle
    Joe Choueiri-Oracle Rank 5 - Community Champion

    No you are right, I was looking for this to be applied BI Answers, but I thought I would give it a try also in DV, that is all.

    Thank you Gianni for your help as always.

    Joe