Oracle Fusion Data Intelligence

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

How to custom aggregate rows of a table?

Accepted answer
25
Views
4
Comments

I have a list of companies, let's say A, B, C, D, E, F. I want to aggregate them in a custom way, let's say 1, 2, 3 where 1 = {A,B}, 2 = {C,D}, 3 = {E, F}.

How can I do it?

Tagged:

Best Answers

Answers

  • Rank 8 - Analytics Strategist

    @Stefano_Mazzocca - You can use a Case Statement or create a Custom Group in the data visualization or data preparation layer. Here's how to do it:


    In your dataset, go to the Data Panel and click on the three dots next to the column containing company names. Select Add Calculated Column.


    CASE
    WHEN "Company" IN ('A', 'B') THEN '1'
    WHEN "Company" IN ('C', 'D') THEN '2'
    WHEN "Company" IN ('E', 'F') THEN '3'
    ELSE 'Other'
    END


    Replace "Company" with the actual column name.This will create a new column with values 1, 2, or 3 based on your groupings.
    Use this new column in your visualizations.
    Drag the calculated column into your chart or table to see the grouped data.

    Hope this helps!

  • Rank 6 - Analytics Lead

    Hi @Sumanth V -Oracle , can you please help me to locate the Data Panel?

Welcome!

It looks like you're new here. Sign in or register to get started.