Oracle Fusion AI Data Platform Forum

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

Gain and Loss From and To column is creating two rows for the same record

Accepted answer
36
Views
6
Comments
KeerthanaBaskaran
KeerthanaBaskaran Rank 4 - Community Specialist

Hi,

We found that in Gain and Loss Subject area, if we try to create a dashboard on BU Mobility 'From Business Unit Name' and 'To Business Unit Name' creating two different rows instead of single row.

Person Number|From Business Unit Name|To Business Unit Name

101|ABC|~No Value~

101|~No Value~|XYZ

We tried different functions which is available in FDI but no luck.Could anybody suggest how can we achieve this in single row.

Thanks.

Best Answer

  • KeerthanaBaskaran
    KeerthanaBaskaran Rank 4 - Community Specialist
    edited Mar 5, 2026 4:00PM Answer ✓

    Hi,

    I'm able to achieve this by creating a dataset with two separate logics and joined with person number,Date,Action code, Reason code.

    Below is the query i used for it.

    select "HCM - Workforce Gains and Losses"."Time"."Date", "HCM - Workforce Gains and Losses"."Basic Information"."Person Number", "HCM - Workforce Gains and Losses"."To Business Unit"."To Business Unit Name", "HCM - Workforce Gains and Losses"."HR Action"."Action Name", "HCM - Workforce Gains and Losses"."HR Action Reason"."Action Reason" from "HCM - Workforce Gains and Losses" where "HCM - Workforce Gains and Losses"."HR Action"."Action Name" IN('Global Transfer') AND "HCM - Workforce Gains and Losses"."To Business Unit"."To Business Unit Name" <> '~No Value~'

    Thanks,

    Keerthana

Answers