Forum Discussion
MXSven
3 years agoHelper I
Problem with [Column Name] - [Column Name]{[Index]-1}
Hi everybody, I am facing the problem, that adding " {[Index]-1} " to the formula leads to an error - Expression.Error: We cannot convert the value 12345 to type List. Any suggestions ...
- 3 years ago
my bad, sorry
If your index column starts with 1 then use the following code:
if [Index] > 1 then [col2] - my_table[col2]{[Index] - 2} else nullIf your Index column starts with 0 then
if [Index] > 0 then [col2] - my_table[col2]{[Index] - 1} else null