Hey,
I have this (enourmous) app forumula to calculate a column, and when I test the formula, the value that it displays it's correct (28.12)
However, when I run the formula, the value that is inserted in the cell e a completely different one (112).
And if I open the formula, in any of the lines displays the 112.
I've checked and re-check the formula, and the data it's calculating, and cannot figure where is the problem.
Anyone had a similar problem?
I think for better suggestions, you will need to share more details such as expression you are using, type of column and where in the column you are using the expression etc.
The main formula is this one
(DECIMAL(INDEX(EXTRACTNUMBERS([TN Fer € - Em falta processado]),3)))
The column (TN Fer € . Em falta processado) is a longtext one, and I'm first extracting the numbers, and then using Index to get just the numbers I wanted.
It is a sum of several formulas for different columns (all longtext, always the same formula)
And in the Table Data display, for each formula, the result value is correct.
Thank you.
@braganca wrote:
And in the Table Data display, for each formula, the result value is correct.
Could you elaborate this? What you mean by table data display- table view, backend table or something else.
In general, if the column is decimal type, then you need not wrap the expression by DECIMAL()
You could simply try
INDEX(EXTRACTNUMBERS([TN Fer € - Em falta processado]),3)
That was my inicial formula, and it was not adding, only when I used DECIMAL
I just did a workaround using a longer formula, from the longtext column. The long text is a CONCATENATE of several columns, so I was using that one, as it was already everything aggregated. As it was not working, I just copy pasted the parts from that formula that I need. It results in a much longer formula, but seems to be working.
@braganca wrote:
It results in a much longer formula, but seems to be working.
It sounds that it is working for you. In that case it is good. If you still need any more suggestion from the community, may I request you to still further elaborate? I am sorry that it is still not clear how those columns are concatenated etc. and where exactly your are using the expression.
Or maybe someone else could help you with the existing details you have shared.
The workaround solved it, so it's done for now.
This is the concatenate (each line a column to simplify it).
CONCATENATE(
[Related Salary em Faltas By Mes Abono Alimentação Processado],
" - ",
SUM(SELECT(Salary em Falta[Abono Alimentação € Processada],AND([Abono Alimentação Processado]=TRUE,[Mes Abono Alimentação Processado]=[_THISROW].[Mês]))),
"€")
In this case, it's just one column in the SUM formula, but other have
SUM(SELECT(XXXXXX)), + SUM(SELECT(XXXXX)) + SUM(SELECT(XXXXX))
Reason why I was using the INDEX(EXTRACT()) so I wouldn't have to use the
s the concatenate (each line a column to simplify it).
CONCATENATE(
[Related Salary em Faltas By Mes Abono Alimentação Processado],
" - ",
SUM(SELECT(Salary em Falta[Abono Alimentação € Processada],AND([Abono Alimentação Processado]=TRUE,[Mes Abono Alimentação Processado]=[_THISROW].[Mês]))),
"€")
In this case, it's just one column in the SUM formula, but other have
SUM(SELECT(XXXXXX)), + SUM(SELECT(XXXXX)) + SUM(SELECT(XXXXX)) again.
But now, I'm going with the
s the concatenate (each line a column to simplify it).
CONCATENATE(
[Related Salary em Faltas By Mes Abono Alimentação Processado],
" - ",
SUM(SELECT(Salary em Falta[Abono Alimentação € Processada],AND([Abono Alimentação Processado]=TRUE,[Mes Abono Alimentação Processado]=[_THISROW].[Mês]))),
"€")
In this case, it's just one column in the SUM formula, but other have
SUM(SELECT(XXXXXX)), + SUM(SELECT(XXXXX)) + SUM(SELECT(XXXXX)) and it's working
@braganca wrote:
The workaround solved it, so it's done for now.
Great. Thank you for the detailed response. Anyone reading this post thread in future will know how it was solved.
User | Count |
---|---|
17 | |
11 | |
7 | |
4 | |
3 |