Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Date1 - Date2 excluding holidays

Status
Not open for further replies.

Lesio

MIS
Jan 7, 2003
48
US
Any idea to modify existing metrics calculating days between two given dates: Facts are defined as: Date_n+1 - Date_n and metrics as sum(Date_n+1 - Date_n). These calculations should exclude company holidays.

This is MicroStrategy 7.2.3 platform. The database platform is DB2 and the fact table stores all dates.

Table

Attr1
Attr2
Attr3
...
Date_n
Date_n+1
Date_n+2
...
Amt_n
Amt_n+1
Amt_n+2
 
one way is to create a metric called "# holidays" and filter it to the specific dates.

Then just do a compound metric.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top