problem with sum for timestampdiff - Page 2 — Oracle Analytics

Oracle Analytics Cloud and Server

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

problem with sum for timestampdiff

Received Response
101
Views
13
Comments
2»

Answers

  • Robert Angel
    Robert Angel Rank 8 - Analytics Strategist

    Sure; -

    case when 'WhateverConditionYouNeedHereIsTrue' then your FormulaHere else 0 end

    Make the aggregation on it sum.

  • Robert Angel
    Robert Angel Rank 8 - Analytics Strategist

    Also, if Dim Person has more than one person per person id then that is the least of your problems.

    You need some kind of SCD functionality to make your employee 1:1 in all time periods, unless you are saying that the result you posted previously would work if you had made it; -

    Period / Employee / Age??

  • Thomas Dodds
    Thomas Dodds Rank 8 - Analytics Strategist

    This is looking more and more like a star modeling issue than a simple formula with a fetch/aggr ordering issue.