Oracle Fusion Data Intelligence

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

Can Parameter values be used in custom calculations?

Accepted answer
43
Views
4
Comments
Caroline Blanchard
Caroline Blanchard Rank 6 - Analytics Lead

We would like to create a custom calculation that filters a measure by the year number in a parameter.

This parameter will enable us to see data in the ending balance of previous years.

We set up our Fiscal Year parameter in the image above.

The calculation validates, however it does not return the proper values. Any advice or input on this topic would be very much appreciated.

Best Answer

  • Hi @CarolineAnderson @Mallikarjuna Kuppauru-Oracle I had a similar calculation built in HCM and it does work. I also validated it against the seeded headcount metric with year as filter. The formulas i had was as below

    Current HC - IFNULL(FILTER("HCM - Workforce Core"."Facts - Workforce Headcount"."Headcount" USING "HCM - Workforce Core"."Time"."Year" = @parameter("Period Year")(1111)) , 0)

    Previous HC - IFNULL(FILTER("HCM - Workforce Core"."Facts - Workforce Headcount"."Headcount" USING "HCM - Workforce Core"."Time"."Year" = (@parameter("Period Year")(1111)-1)) , 0)

    The query for the parameter initial value was as below

    Period Year - SELECT "HCM - Workforce Core"."Time"."Year" FROM "HCM - Workforce Core" WHERE (("Time"."Year" IN (YEAR(CURRENT_DATE))))


    Raghu

Answers