Creating a rule using an element attribute from a picklist
Posted: Thu Feb 13, 2014 12:28 am
How do would I create a rule with an element that has a picklist and use the picklist Attrn?
This is the calculation I started with
['Total fees' ] =N: IF (['Maturity Terms']>0,(['Loan Origination Fee' ]
+['Other Loan Fees' ] )\['Price Test' ] ,0);
Maturity terms is a string and only works with my links between cubes to look up other data.
Any rule I write with the Maturity terms does not work because it is a string and needs to be converted to numeric.
Maturity Terms is a picklist that looks at the Term_Years dimension and it has a numeric attribute called TermsNumeric.
I started down the path writing this:
['Total fees' ] = N: IF(ATTRN('Commerical_Pricing' , !Maturity Terms, 'TermsNumeric')>0, (['Loan Origination Fee' ]
+['Other Loan Fees' ] )\['Price Test' ] ,0);
But it is looking for the element attribute for Maturity Terms not Term_Years which is the picklist. Any suggestions on how to write this an use the picklist numeric attribute.
Or is there a better way to convert a string to numeric with a picklist element?
Thanks
This is the calculation I started with
['Total fees' ] =N: IF (['Maturity Terms']>0,(['Loan Origination Fee' ]
+['Other Loan Fees' ] )\['Price Test' ] ,0);
Maturity terms is a string and only works with my links between cubes to look up other data.
Any rule I write with the Maturity terms does not work because it is a string and needs to be converted to numeric.
Maturity Terms is a picklist that looks at the Term_Years dimension and it has a numeric attribute called TermsNumeric.
I started down the path writing this:
['Total fees' ] = N: IF(ATTRN('Commerical_Pricing' , !Maturity Terms, 'TermsNumeric')>0, (['Loan Origination Fee' ]
+['Other Loan Fees' ] )\['Price Test' ] ,0);
But it is looking for the element attribute for Maturity Terms not Term_Years which is the picklist. Any suggestions on how to write this an use the picklist numeric attribute.
Or is there a better way to convert a string to numeric with a picklist element?
Thanks