Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hye,
I define a variable :
Set VSecondeTranche =only(if(aggr(Rank(
Count(if ( $(vAnnee) = ANNEE_FH and $(vTypeAnnee) = TYPE_ANNEE ,Revenu_T1))
/
Count(Total if ( $(vAnnee) = ANNEE_FH and $(vTypeAnnee) = TYPE_ANNEE ,Revenu_T1))
,Revenu_T1)
,Revenu_T1)=2,Revenu_T1
)
);
That works fine when i put $(VSecondeTranche) (only 1 value).
But when i try
sum(
{$<Revenu_T1 = {'=$(VSecondeTranche) '}
>} MNT_NET_COJ_TOT
)
I've the error message.
Thanks
What if you do this
Sum({$<Revenu_T1 = {"$(=$(VSecondeTranche))"}>} MNT_NET_COJ_TOT)
Hi,
try this:
sum({$<Revenu_T1 = {$(VSecondeTranche)}>} MNT_NET_COJ_TOT)
same error...
How about this?
Sum({$<Revenu_T1 = {"$(=VSecondeTranche)"}>} MNT_NET_COJ_TOT)
no error, but it give me 0
for information, it's a title, i set
$(VSecondeTranche) & '____' &
Sum({$<Revenu_T1 = {"$(=VSecondeTranche)"}>} MNT_NET_COJ_TOT)
and it's return
What if you do this
Sum({$<Revenu_T1 = {"$(=$(VSecondeTranche))"}>} MNT_NET_COJ_TOT)
seems to be good !!
thanks !
Can you just explain why double quote and double $ ?
It depends on how the variable is declared, I am guessing your variable is without the equal sign? It just needed to be expanded, before the set analysis's dollar sign expansion. I am not completely sure if there is a sure shot way to decide this, but I usually try these two with variable and more often then not then work
1) {<FieldName = {"$(=vVar)"}>}
2) {<FieldName = {"$(=$(vVar))"}>}
ok thanks.
my variable was defines like this :
Set VSecondeTranche = ......
I'll try this next time too !!
Edit : i think i've understand. It's about the same than difference betwenn set and let in load i gess.
I'm getting a similar error with the following expression that aims to pull in a current AnnualProduct field selection that might include the "&" or "-" sign. It works when I select an option without one of those symbols. Any idea how to fix this?
(SUM({<AnnualYear={'$(=GetFieldSelections(AnnualYear))'},AnnualProduct={'$(=GetFieldSelections(AnnualProduct))'}>} AnnualSalesPremiumCurrentYear))