Quantcast
Channel: SQL Server Analysis Services forum
Viewing all articles
Browse latest Browse all 14337

SSAS - Calculation at Row Level

$
0
0

I have a problem with an agregated calculation that doesn’t make sense.

I need to apply a calculation at row/cell level in SSAS! Normally, if I need to do row level calculations, I do in SQL source view or ETL, but in this case, the quantity (denominator) is also a Accumulated calculation as you can see the MDX Script below.

Do you know any alternative to apply the calculation at row level is SSAS?L

CREATEMEMBERCURRENTCUBE.[Measures].[Qt Inventory]

ASSUM({NULL:[Dim Date].[Calendar].CurrentMember}

, [Measures].[Qt Inventory Day]),

VISIBLE = 1 , ASSOCIATED_MEASURE_GROUP ='Inventory';

 

CREATEMEMBERCURRENTCUBE.[Measures].[Unit Price EUR]

ASIIF([Measures].[Qt Inventory]=0,0,

    ([Measures].[Cost Amount Actual]+[Measures].[Cost Amount Expected])/[Measures].[Qt Inventory]),

FORMAT_STRING ="Currency",

VISIBLE = 1 , ASSOCIATED_MEASURE_GROUP ='Inventory';     

Thank you!!


Viewing all articles
Browse latest Browse all 14337

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>