Hi Frederic,
I do not understand what do you mean by "match"...
You have dimensions:
ACCOUNT
CUSTOMER
If you want to calculate result for all customers simply don't reference CUSTOMER dimension:
Script for default.lgf:
*WHEN ACCOUNT
*IS 123
*REC(EXPRESSION=%VALUE%*[ACCOUNT].[456],ACCOUNT=999_AVG)
*ENDWHEN
*WHEN ACCOUNT
*IS 456
*REC(EXPRESSION=%VALUE%*[ACCOUNT].[123],ACCOUNT=999_AVG)
*ENDWHEN
This script will calculate 999_AVG for each customer...
then to get average you will have to create dimension member formula:
123CALC
=IIF([456]=0,NULL,[999_AVG]/[456])
Vadim
Message was edited by: Vadim Kalinin - Updated