如何计算当前月份前一年的第一天

2020-08-18 15:21发布

点击此处---> 群内免费提供SAP练习系统(在群公告中)加入QQ群:457200227(SAP S4 HANA技术交流) 群内免费提供SAP练习系统(在群公告中)我需要在Webi中跟踪日期 当...

         点击此处--->   EasySAP.com群内免费提供SAP练习系统(在群公告中)

加入QQ群:457200227(SAP S4 HANA技术交流) 群内免费提供SAP练习系统(在群公告中)


我需要在Webi中跟踪日期

当前月份的第一天-2016年10月10日

当前月份的最后一天(2016年10月31日)

下一个月的上一年/下一年的第一天-2016年11月11日/-2017年11月1日

下个月的最后一天上一年/下一年-30/11/2016/-30/11/2017

一年中的最后一天上一年/当前年份-2016年12月31日/-2017年12月31日

需要紧急帮助

4条回答
我是小鹏鹏啊
2020-08-18 16:25 .采纳回答

使用这些。

当前月份的第一天-

= RelativeDate(ToDate(" 01/" + FormatDate(CurrentDate();" MM/yyyy");" dd/MM/yyyy");-12; MonthPeriod)

当前月份的最后一天上一页年份-31/10/2016

= LastDayOfMonth(RelativeDate(ToDate(" 01/" + FormatDate(CurrentDate();" MM/yyyy");" dd/MM/yyyy");-12; MonthPeriod))

下一个月的上一年/下一年的第一天-2016年11月11日/-2017年11月1日

= RelativeDate(ToDate(" 01/" + FormatDate(CurrentDate();" MM/yyyy");" dd/MM/yyyy");-11; MonthPeriod)

= RelativeDate(ToDate(" 01/" + FormatDate(CurrentDate();" MM/yyyy");" dd/MM/yyyy"); 1; MonthPeriod)

下个月的最后一天上一年/下一年-30/11/2016/-30/11/2017

= LastDayOfMonth(RelativeDate(ToDate(" 01/" + FormatDate(CurrentDate();" MM/yyyy");" dd/MM/yyyy");-11; MonthPeriod))

= LastDayOfMonth(RelativeDate(ToDate(" 01/" + FormatDate(CurrentDate();" MM/yyyy");" dd/MM/yyyy"); 1; MonthPeriod))

一年中的最后一天上一年/当前年份-2016年12月31日/-2017年12月31日

= RelativeDate(ToDate(" 31/12/" + FormatDate(CurrentDate();" yyyy");" dd/MM/yyyy");-1; YearPeriod)

= ToDate(" 31/12/" + FormatDate(CurrentDate();" yyyy");" dd/MM/yyyy")

一周热门 更多>