# How-to questions

Hi! Don’t forget to take a look in the Knowledge Base for answers to common questions :)

• Hot ideas
• Top ideas
• New ideas
• My feedback
1. ## Avoid a blank return when using concatenate on fields that may be blank

1 vote
Vote
(thinking…)
Signed in as (Sign out)
You have left! (?) (thinking…)
2. ## Calculate Remaining Balance

I have a view where I can see a client's Total Cost, Deposit they paid and their Remaining Balance (I have Balance set with the formula Total Cost - Deposit.) When a client wants to make a partial payment, how can I do that and have the Remaining Balance calculate that?

1 vote
Vote
(thinking…)
Signed in as (Sign out)
You have left! (?) (thinking…)
3. ## How can I add # of days to a previously entered date?

1 vote
Vote
(thinking…)
Signed in as (Sign out)
You have left! (?) (thinking…)
4. ## Does the system allow negative integers or negative percentages for baseline data

1 vote
Vote
(thinking…)
Signed in as (Sign out)
You have left! (?) (thinking…)
5. ## Is there a maximum number of IF statements I can nest?

I ask this because when I go to save the calculated field a dialog box appears stating: "We've had a minor problem. We can't tell if your request completed. Please click OK below to refresh your browser." Prior to this dialog box appearing, however, a string of text appears (stating: "Large tables usually save in under a minute. Feel free to leave this page, we'll let you know when this is saved") atop the whited out page as the calculated field is saved - see attachment "Problem with IF Statement."

Also, once I paste the copied IF statement formula into…

1 vote
Vote
(thinking…)
Signed in as (Sign out)
You have left! (?) (thinking…)

In most languages you can add comments that does not affect the code or formula. Out of habit I tried to use ' but that didn't seem to work. Does trackvia allow for this kind of thing and if so what is the symbol or text?

E.g.

If({Field} = 1, A + B, A + C)

1 vote
Vote
(thinking…)
Signed in as (Sign out)
You have left! (?) (thinking…)
7. ## Use Regular Expression in Contains() or Snip()

It would be really great to be able to match a pattern of text with regular expression in contains() and snip()

If you use IF(contains("gmail",{url}),"Gmail","other")

It will return gmail for both because both contain gmail even though I am only looking for /account/gmail.

If I wanted to just find the account number (in this example) I could use something like /(\d+\w+)/g

1 vote
Vote
(thinking…)
Signed in as (Sign out)
You have left! (?) (thinking…)
8. ## How do I calculate the sum of a column so that I can then use that to determine the percentage of the total for a given value?

For example I want to show the percentage of total sales by store, salesperson etc.
Everything I have tried so far just returns 100% as it is only doing the calculation on a row by row basis rather than using the column total.

1 vote
Vote
(thinking…)
Signed in as (Sign out)
You have left! (?) (thinking…)
9. ## I need to copy an auto-generated numeric ID to a text field if a condition is met

I have a checkbox in a table to deliniate a category: checked or not checked. If not checked, the record is an asset without a serial number. When not checked, I need TrackVia to copy the auto-generated numeric field (unique ID) for that record to a text field as a substitute for the serial number.

1 vote
Vote
(thinking…)
Signed in as (Sign out)
You have left! (?) (thinking…)
10. ## How to Return a 2-Digit Value for Date Formula "Month(date)" and "Day(date)"

Using the month() and day() formula result in a single digit number returning. eg: January = 1.

Is there a way to have a 2 digit value return for all?
eg: January=01

I'm trying to get a result of: 2014-01-15

concatenate(year({Month Ending}),"-",month({Month Ending}),"-",day({Month Ending}))

Vote
(thinking…)
Signed in as (Sign out)
You have left! (?) (thinking…)
11. ## Day of the Year

Is there a formula to calculate the day of the year?
Example: Today, 3/18/2015 is the 77th day of 2015.

Vote