Hi,
I had the same problem and solved it roughly, maybe it helps you, too:
http://www.jedox.com/community/palo-foru…ight=#post14421
I wanted to lookup a target value out of a storage-cube for the complete amount of these values, based on a calculated value out of another cube. But the palo.data-formula just accepts a hardcoded reference or a !'xyz'-dimension reference, which i don't have due to the calculation source of my reference value. So I used the round function to streamline the calculated value (but then just with 1 digit after comma, less than desired) and made my reference data in the storage cube more detailed (more work than desired). The palo.data looks now like this:
|
Source code
|
1
2
|
PALO.DATA("DB_all","ReferenceStore",LEFT(!'Client',3),
STR(ROUND(PALO.DATA("DB_all","Sales",!'Country',!'Fullfiller',!'Product',!'Date',!'Customer',!'Store',"M-Share"),1),3,1))
|
The M-Share is the calculated value. The STR() is needed, because the palo.data don't seem to accept it otherwise due to the number-type resulting from round. Like this it works...
If M-Share is calculated as 47.5678%, the reference becomes 47.6 and the ReferenceStore contains then a dimension element named (!) 47.6 and a cell value found by this (e.g. 97) to align the calculated value to a certain scale which users use to judge about the value.
Best regards,
Stefan