Hello Oracle Analytics Community,
I am currently working on replicating a Power BI visualization in Oracle Analytics Cloud (OAC) and I need assistance with translating a DAX calculation into OAC's calculation logic.
Objective:I am trying to replicate a bar chart and table visualization that shows the variance in scores between 2022 and 2021 for each sector.
Details:In Power BI, I have the following DAX calculation that calculates the variance score:
Variance Score =
DIVIDE(
CALCULATE(
AVERAGE(esgscores[Total-Score]),
FILTER(Financial_Statements, Financial_Statements[year] = 2022)
) - CALCULATE(
AVERAGE(esgscores[Total-Score]),
FILTER(Financial_Statements, Financial_Statements[year] = 2021)
),
CALCULATE(
AVERAGE(esgscores[Total-Score]),
FILTER(Financial_Statements, Financial_Statements[year] = 2021)
)
)
Explanation:
esgscores is a table containing the Total Score.Financial_Statements is another table containing the Year column used for filtering.- The calculation computes the difference in average Total Score between 2022 and 2021, divided by the average Total Score for 2021.
Question: How can I translate the above DAX calculation into Oracle Analytics Cloud (OAC) using the available calculation methods? Specifically, how do I replicate the CALCULATE, FILTER, AVERAGE, and DIVIDE functions in OAC?
Any guidance or examples would be greatly appreciated. Thank you!