Oracle Analytics Cloud and Server

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

OBIEE 11g: How to calculate No.of days between dates excluding frinday

Received Response
1
Views
2
Comments
user6536648
user6536648 Rank 1 - Community Starter

HI,

How to calculate no.of days between two dates excluding Friday if Friday comes between the dates.

Regards,

MIT.

Answers

  • [Deleted User]
    [Deleted User] Rank 2 - Community Beginner

    You can't really easily do this with TIEMSTAMPDIFF but you can do it with a time dimension containing day names and joining that to your fact - effectively kind of snowflaking it to get a COUNT of days between 2 dates is a subquery.

  • Joel
    Joel Rank 8 - Analytics Strategist

    Assuming you have a Date Dimension, you can do something along the lines of:

    In your column formula: COUNT("Time"."T00 Calendar Date")

    Screen Shot 2016-08-22 at 09.57.17.png