Showing posts with label measure. Show all posts
Showing posts with label measure. Show all posts

Monday, February 13, 2012

Add a calculated measure to a Measure Group ?

I have created a calculated measure which is logically very much part of a specific measure group but I can't seem to work out how to add it to the measure group.. it just sits there as part of the general Measures.

Can I specifiy in which Measures group it should reside? This would also make more sense for managing Perspectives..

In the calculations tab, when you are defining the calculation, look on the toolbar for a button named "Calculation Properties". Click on that and it will open a dialog box that you can use to add either display folders or associated measure groups for each of your calculated members. Just add an associated measure group for the calculated member in question and it will then show up visually in that measure group's list of items.

HTH,
Dave Fackler

|||Thanks.. not exactly obvious is it!|||

Hi Dave,

how another property of Calculated member "Description" can be set ?

Only with notepad?

|||

Hi,

Here is how to relate the calculated memeber and the measure group

1. Open the calculations tab in the BI studio

2. Select the calculation (you want to set) from the left 'script organizer' window

3. Click on the 'Calculation properties' toolbar button (It is on the calculation tab, above the script organizer)

or from the top BI studio menu, select Cube>Calculation Properties

4. This opens a dialog box, with all your calculations on the left drop down and all the measureGroups on the right drop down. (ignore the display folder)

5. select the calculation from the left drop down and the associated MeasureGroup from the the right drop down.

Its pretty easy, you should be able to do it in a snap

Regards

Thursday, February 9, 2012

Actual and Forecast as One Measure

Hi, there,

I have a measure, Sales Amt which consists of 12 mths from Jan to Dec. Let's say, now is Feb. Sales Amt for Jan is actual amt and Sales Amt from Feb onwards are considered forecasts. Currently, forecast Sales Amt is calculated using Excel formula. I have 12 columns (12 mths) for Sales Amt. Every mth, users will overwrite the forecast with the actual amt.

Is there a way to show both actual Sales Amt and forecast Sales Amt as one measure if I define the formula to calculate the forecast amt in the cube?

Thank you.

Regards,

Yong Hwee

Yes, this can be done. The best way to do it is to write something like that:

SCOPE ( [Date].[February] : NULL );

[Sales Amt] = [Forecast Sales Amt];

END SCOPE;

|||

Hi, Mosha,

Thank you for your reply. One more question, how about keeping several 'versions' of calculations? For instance, the formula to calculate the forecast sales amt may varied from time to time. So, in Feb, the forecast sales amt may be defined by formula A but when it comes to June and onwards, it may be defined by formula B. So, when users retrive the values for diff mths, SSAS must be able to calculate accordingly whether to use formula A or B.

Thank you.

Regards,

Yong Hwee

|||

([Feb]:[May], [Sales Amt]) = formulaA;

([Jun]:NULL, [Sales Amt]) = formulaB;

|||

Hi, Mosha,

Thank you for your immediate reply. Sorry for my ignorance. Currently, in the Excel application, users maintain a set of workbooks for every report version. FYI, we have Business Plan, Forecast and Actual report versions. The formulas used for calculation vary not only between diff period, but also vary among report versions. I will only talk about the Actual version of reports.

([Feb]:[May], [Sales Amt]) = formulaA;

([Jun]:NULL, [Sales Amt]) = formulaB;

The above formulas will be used in Actual Report A (Jan as actual mth and Feb~Dec are forecast mths). When it comes to next mth, Feb, users will prepare Actual Report B (Feb as actual mth and Mar~Dec are forecast mth). In Feb, the formula above will not be valid as I already have actual amt for Feb. Do I need to change the script every mth?

Also, there is another requirement. The results of all submitted reports should not change even the formula most likely to change over the time. In other words, changing the formula should not affect the results of the past submitted reports.

Thank you.

Regards,

Yong Hwee

|||

1. You can have Scenario dimension with Actual, Plan and Forecast members, and scope on each one of them for different rules

2. You can parametrize the current month - this way you won't need to change the MDX Script every month.

3. The requirement about locking the values is more difficult. You will need to do something about it, like writing the results into another table. There is no built-in support for that in AS, and cell writeback is probably not going to work very well in this case either.

|||

Hi, Mosha,

Thank you for your reply. I have got some ideas now.

Thank you.

Regards,

Yong Hwee

|||

Hi, Mosha,

I refer to your previous message in which you mentioned about parameterize the current mth. How should I pass the value for the parameter?

Thank you.

Regards,

Yong Hwee