Hi, I am triying to add dynamic measure expression to the existing schema.
The scenario is like this,
I have 7 dimensions all are link to the one single measures with different conditions, (fact_transaction with Amount as Column). One simple rule is, aggregate amounts which are < 100 and the aggregated sum will be filter in MDX (if the sum > 1000 then). I put the base condition in Measure as MeasureExpression (case when fact_transaction.Amount < 100 then Amount else 0 end).
Now, the problem is to make the values ( 100 and 1000 dynamic ). One value (1000) we can pass it to the MDX. Can we change the value 100 in schema dynamically and get the results in efficient time.
Second problem is to add new measure to the existing schema (like aggregate Amount as sum and pass the condition value through MDX as filter >1000 )
How can we build a schema dynamically and efficiently.
The scenario is like this,
I have 7 dimensions all are link to the one single measures with different conditions, (fact_transaction with Amount as Column). One simple rule is, aggregate amounts which are < 100 and the aggregated sum will be filter in MDX (if the sum > 1000 then). I put the base condition in Measure as MeasureExpression (case when fact_transaction.Amount < 100 then Amount else 0 end).
Now, the problem is to make the values ( 100 and 1000 dynamic ). One value (1000) we can pass it to the MDX. Can we change the value 100 in schema dynamically and get the results in efficient time.
Second problem is to add new measure to the existing schema (like aggregate Amount as sum and pass the condition value through MDX as filter >1000 )
How can we build a schema dynamically and efficiently.