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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

function in transformer

Status
Not open for further replies.

clockerz

Programmer
Oct 1, 2002
1
US
Hello all,

I am still kind of new at this so I was wondering if there is a function in Transformer when creating a calculated measure that will give you the number of days in a month? For example my calculation is 5 * (#days of month)?

Thanks all,

Steve C.
 
Hi Steve,

If you are using Impromptu to create an IQD for Transformer, you can use the Day and Last-of-Month functions to determine this. The Day function gives you the day of a date expression as an integer, and the Last-of-Month gives you the last date of a month for a given date expression. Combine them, as in:

Day(Last-of-Month(date-exp))...

to get your number of days in a given month.

Hope this is helpful,

Regards,

Dave Griffin
The Decision Support Group
Reporting Consulting with Cognos BI Tools
"Magic with Data"
[pc2]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top