Dear Friends,
How can I create a namedcalculation based on another named calculation?
The first named calculatoion has in expression textarea:
CASE
WHEN [D_INST_TIPO_ID]=1 THEN
CASE
WHEN [Price/NPV] = 0 THEN [Avg Flash]
ELSE [Price/NPV]
END
END
And I need to create a second named calculation based on the first!!
If it's not possible, can I set the expression of first named calculation to a variable? To use only one named calculation? example:
xx=(CASE
WHEN [D_INST_TIPO_ID]=1 THEN
CASE
WHEN [Price/NPV] = 0 THEN [Avg Flash]
ELSE [Price/NPV]
END
END)
xx/(Field3)+(Field4)*(Field5)
?
Thanks!!
I don't believe this is possible. You may need to repeat the first calculation in the context of the second one.|||Someone knows any solution?|||Hi,
you can't use a named calculation inside another.
If you have formulae that are going to be used one inside another,
then you can use 'calculated measures'.
These are created from the 'calculation' tab of the BI studio.
and they are evaluated at run time.
Check this link for more details of creating calculations,
http://msdn2.microsoft.com/en-us/library/ms181224.aspx
if you have specific reasons not to use this,
then you have to expand all your formulae to the lowest level.
That is to elements that are already avaliable in the dsv table.
Regards
Vijay R
No comments:
Post a Comment