Oracle Fusion Data Intelligence

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

What's wrong with this Key Metric?

Accepted answer
32
Views
3
Comments
Stefano_Mazzocca
Stefano_Mazzocca Rank 6 - Analytics Lead
image.png image.png

I tried both versions

Best Answer

  • I believe Key metrics expressions must be measures.

    Your current formula is resulting in a row-level calculation, not an aggregated value.

    To fix it, you might need to wrap the formula in aggregation function like SUM().

    Try:

    SUM(CASE WHEN CAST(PER_ASG_PERCENTUALE_INCARICO_ AS INT) > 0 THEN 1 ELSE 0 END)

Answers