on 05-28-2015 10:33 AM
Hello,
I would like to replicate the following excel formula in Webi XI3:
=year(a2)&"-"&if(isodd(month(a2)),month(a2)&"&"&Month(a2)+1,month(a2)-1&"&"&month(a2))
Could you please help me?
Thanks
Hi ,
Use below formula
= FormatNumber(Year([Date]);"0")+"-"+ If( Mod( MonthNumberOfYear([Date]);2) = 1 ) Then MonthNumberOfYear([Date]) + "&"+ ToNumber(MonthNumberOfYear([Date]) +1 ) Else MonthNumberOfYear([Date]) -1 +"&"+MonthNumberOfYear([Date])
Thanks,
Tanveer
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi ,
Create a variable as Date with formula as below
Date = todate([Billing Month];"yyyyMM")
after that use the below formula as i suggested in the above reply
= FormatNumber(Year([Date]);"0")+"-"+ If( Mod( MonthNumberOfYear([Date]);2) = 1 ) Then MonthNumberOfYear([Date]) + "&"+ ToNumber(MonthNumberOfYear([Date]) +1 ) Else MonthNumberOfYear([Date]) -1 +"&"+MonthNumberOfYear([Date])
let me know how this works
Thanks,
Tanveer.
User | Count |
---|---|
87 | |
10 | |
10 | |
9 | |
7 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.