Cognos - 报告功能

可以在Cognos报告中使用各种报告功能.

其中一些不同的报告功能包括 :

_days_between

此函数用于返回表示两个日期时间表达式之间天数的正数或负数.如果timestamp_exp1< timestamp_exp2然后结果将是-ve数.

如何使用

 
 _days_between(timestamp_exp1, timestamp_exp2)

_days_to_end_of_month

此函数用于返回表示所代月份剩余天数的数字by datetime expression timestamp_exp.

如何使用

 
 _days_to_end_of_month(timestamp_exp)

_first_of_month

此函数用于返回由timestamp_exp表示的月份的第一天的日期时间.

_add_days

此函数用于返回将time_exp天添加到timestamp_exp所产生的日期时间.

如何使用

 
 _add_days(timestamp_exp,integer_exp)

_add_months

此函数用于返回由此产生的日期时间om将integer_exp个月添加到timestamp_exp.

如何使用

 
 _add_months(timestamp_exp,integer_exp)

_add_years

此函数用于返回将integer_exp years添加到timestamp_exp所产生的日期时间.

如何使用

 
 _add_years(timestamp_exp,integer_exp)

_age

此函数用于返回通过YYYYMMDD格式(年,月,日)从今天的日期减去timestamp_exp获得的数字.

如何使用

 
 _age(timestamp_exp)

_day_of_week

此函数用于返回星期几(1到7之间),其中1是一周的第一天,由integer_exp表示(1到7之间,1为1)星期一,7星期日).请注意,在ISO 8601标准中,一周从星期一开始是第1天.在北美,星期日是一周的第一天是第7天.

如何使用

 
 _day_of_week(timestamp_exp,integer_exp)

_day_of_year

此函数用于在date_exp(1到366)中返回一年中某一天的序号.也称为朱利安日.

如何使用

 
 _day_of_year(timestamp_exp)

像这些一样,还有其他各种报告功能可供使用.