Categories
- All Categories
- Oracle Analytics and AI Learning Hub
- 34 Oracle Analytics and AI Sharing Center
- 22 Oracle Analytics and AI Lounge
- 276 Oracle Analytics and AI News
- 47 Oracle Analytics and AI Videos
- 16.1K Oracle Analytics and AI Forums
- 6.3K Oracle Analytics and AI Idea Labs
- Oracle Analytics and AI User Groups
- 99 Oracle Analytics and AI Trainings
- 16 Oracle Analytics and AI Challenge
- Find Partners
- For Partners
Welcome to the Oracle Analytics Community: Please complete your User Profile and upload your Profile Picture
Count the number of HIRES in a specific way
Stefano_Mazzocca
Rank 6 - Analytics & AI Lead
Hi, I need to create a line chart showing the number of hires for each company year by year.
One of these companies, let's say company "A", should also add the hires of another company, let's say company "B", when year < 2023 because it was merged with the first one.
Is there a way to create a key metric or a calculation to do so?
Tagged:
0
Best Answer
-
@Stefano_Mazzocca - Create a custom calculation in OAC DV as below:
CASE
WHEN "Year" < 2023 AND "Company" IN ('A', 'B') THEN "Hires"
WHEN "Year" >= 2023 AND "Company" = 'A' THEN "Hires"
ELSE 0
ENDThis logic ensures:
- Before 2023: Hires for both company "A" and "B" are aggregated.
- From 2023 onwards: Only hires for company "A" are included.
- Use this custom metric in your line chart.
- Set the X-axis as "Year".
- Set the Y-axis as the custom metric created above.
- Hope this helps!. Thank you!.
1
