Data Import: treat a dash a zero

MarkBird
Contributor II

Hi

Is it possible to treat a dash/hyphen as a zero during a data import from a file?

Thanks,

Mark

4 REPLIES 4

EricOsmanski
Valued Contributor

You could through a rule on the Amount field, but in an attempt not to go that route you could try to Substitution settings on the Data Source Amount field. I have not tested this particular situation though.

EricOsmanski_0-1693573581576.png

 

MarkBird
Contributor II

Thanks Eric, I'll give that a try.

My only concern is that it may cause an issue with negative values?

Delete original post

photon
New Contributor III

Perhaps a complex expression in the Amount field of the data source? Off the top of my head, maybe something like this:

 

 

If args.Value = "-" Then
	Return 0
Else
	Return args.Value
End If