Joined: 28 May 2013
Online Status: Offline
Posts: 93
Topic: "ToText" with dates Posted: 13 Jan 2015 at 4:42am
I am trying to display a based on some arithmetic. The formula I am using is this
if {Table.Field} = "A"
then
"See Notes"
else
if
{Table.Field} = "B"
then
totext(({Table.DateTime} +2)-today, "dd-MMM-yyyy")
else if
{Table.Field} = "C"
then
totext(({Table.DateTime} +9)-today, "dd-MMM-yyyy")
else if
{Table.Field} = "D"
then
totext(({Table.DateTime} +119)-today, dd-MMM-yyyy")
When I create the formula I am told there are no errors.
When I add the formula to the report and refresh I get an error saying
"Bad Number Format String"
My end result would be to show a date something expires based on the math.
Joined: 28 May 2013
Online Status: Offline
Posts: 93
Posted: 13 Jan 2015 at 6:24am
So yes the formula you provided will return a number, but not a date. I need a calendar date. Because of the one special case where the output of the formula will be a text string is throwing off the whole works
Joined: 28 May 2013
Online Status: Offline
Posts: 93
Posted: 13 Jan 2015 at 7:15am
It is for a count down. It displays a "Days Remaining" Number. The formula to produce the number is working fine. I need a separate formula to produce a calendar date.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum