This is strange.
I have one custom expression field called [Toppalbum alla formaterat exp] with this expression you taught me:
Delimit(listbuild(1,/ ,listbuild(1,/ <b>•<//b>/ ,Delimit([RSM internt],<//i>,<i>RSM/ ),Delimit([Virgin internt],<//i>,<i>Virgin/ ),Delimit([Esq. 75 INTERNT],<//i>,<i>Esq./ ),Delimit([NME 100 INTERNT],<//i>,<i>NME/ ),Delimit([NARM 200 INTERNT],<//i>,<i>NARM/ ),Delimit([VH1 100 INTERNT],<//i>,<i>VH1/ )),ifelse(!isempty([1001 Albums]),<font color="FF0000">♥<//font>)),/),/()
If I do:
ListCount([Toppalbum alla formaterat exp],/ <b>•<//b>/ )
1 is returned if [1001 Albums] is not empty but all the other referenced fields are empty.
1 is returned if [1001 Albums] is not empty and 1 (one) of the other referenced fields is not empty.
If [1001 Albums] is not empty and two or more referenced fields are not empty, I get the number of the referenced fields, i.e. if [1001 Albums] is not empty and two other referenced fields are not empty, I get (only) 2.
I want to get the number of non empty referenced fields, including [1001 Albums], but this expression does not work:
If(IsEmpty([1001 Albums]),ListCount([Toppalbum alla formaterat exp],/ <b>•<//b>/ ),Math(ListCount([Toppalbum alla formaterat exp],/ <b>•<//b>/ )+1))
Help!
PS. MrC, in your last post I think there is one closing paren too many in your partial expression.