Hi,
I created a formula that will categorize the each records from the database based from the condition below.
Let say it the formula name is STATUS
STATUS could be CLOSED or OPEN as shown in the formula below
IF {table.datecolumn}
> CurrentDateTime
THEN 'OPEN'
ELSE
IF {table.datecolumn}
< CurrentDateTime
THEN 'CLOSED'
I want to know how could I get the total counts of OPEN as well as CLOSED and store them in another formula field.
OPEN | CLOSED | TOTAL | |
---|---|---|---|
Data 1 | 1 | 0 | 1 |
Data 2 | 2 | 2 | 4 |
Data 3 | 5 | 1 | 6 |
TOTAL | 8 | 3 | 11 |
For example. 8 will be stored to OPEN and 3 will be stored to CLOSED.
I am doing this because I want to show how many records are open and how are closed in thru bar chart CHART.