Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Straight table issue.

I have below expression in straight table with one dimension.This expression will give different numbers when I do expression total and sum of rows.Not sure why.

IF(Key='200',sum([Area]),

(Sum([Area]) + Sum({$<[Type]={'Sub'}>}([Area]*-1))))

Thanks Much.

2 Replies
Gysbert_Wassenaar

It's because the test Key='200' from the if statement can't be done at the total level. It can only be done at the record level. Key has no singe value at the chart total level.


talk is cheap, supply exceeds demand
stabben23
Partner - Master
Partner - Master

Try this Expression:

sum(aggr(IF(Key='200',sum([Area]),Sum([Area]) + Sum({$<[Type]={'Sub'}>}([Area]*-1)))),'Your dimension'))