Percentage functions in BEx query designer are used to calculate different types of percentages as per the business requirement of the report. These functions are used in calculated key figures/formulas of the query to calculate and display various percentage values with the symbol ‘%’ as a suffix.

Here is a business scenario of a BEx report in which all percentage functions available in BEx are used to achieve the desired result ->

Screenshot of the Report in BEx Analyzer (Fig: 1) ->

Screenshot of the corresponding query in BEx Query Designer (Fig: 2) ->

The above report deals with the sales of different stores in different countries during april and may months.Hence ‘Country’ , ‘Store Name’ characteristics are used as rows and KF selections ‘April Sales’, ‘May Sales’ are used as columns in the report. Formula ‘Total Sales’ is nothing but the sum of ‘April Sales’, ‘May Sales’.

1. Using ‘Percentage Variance (%)’ function:

Calculation behind this formula:

‘April Sales’ % ‘May Sales’ = 100 (April Sales – May Sales) / abs (May Sales), when denominator not equals zero.If denominator equals zero, then based on your BEx global settings, it displays the character you set for ‘division by 0’operations.For example: #, X, blank space, 0 etc.

In (Fig: 1) -> % variance between ‘April Sales’, ‘May Sales’ is calculated as highlighted below:

2. Using ‘Percentage Share (%A)’ function:

Calculation behind this formula:

‘April Sales’ %A ‘Total Sales’ = 100 (April Sales) / abs (Total Sales), when denominator not equals zero. If denominator equals zero, then based on your BEx global settings, it displays the character you set for ‘division by 0’operations.For example: #, X, blank space, 0 etc.

In (Fig: 1) -> % share of ‘April Sales’ in ‘Total Sales’ is calculated as highlighted below:

3. Using ‘Percentage Share of Result (%CT)’ function:

Calculation behind this formula:

%CT ‘Total Sales’ means -> Percentage share of ‘Total Sales’ values in ‘Result’ values of the Report.

From (Fig: 1) -> % share of ‘Total Sales’ values in ‘Result’ values of the Report are calculated as highlighted below:

4. Using ‘Percentage Share of Overall Result (%GT)’ function:

Calculation behind this formula:

%GT ‘Total Sales’ means -> Percentage share of ‘Total Sales’ values in ‘Overall Result’ values of the Report.

From (Fig: 1) -> % share of ‘Total Sales’ values in ‘Overall Result’ values of the Report are calculated as highlighted below:

Fig: 3 ->

5. Using ‘Percentage Share of Query Result (%RT)’ function:

Calculation behind this formula:

There is no difference between functionality of %GT, %RT functions when the report does not have any dynamic filter applied (as shown in Fig: 3 above).

But when a dynamic filter is applied, ‘Overall Result’ values in the report are changed in accordance with the filter value. Hence %GT function calculates % share values by considering changed ‘Overall Result’ values.

Here comes the importance of %RT function, this percentage function will always calculate % share values with respect to the ‘Query Result’ (i.e., ‘Overall Result’ before the filter was applied),which means %RT function works irrespective of the dynamic filter and the query navigational state.

When a dynamic filter is applied on the report, the difference in functionality of the %GT, %RT functions can be observed in the Fig: 4 below.

Note: dynamic filter is applied on the ‘Country’ column with value ‘BR Brazil’.

Fig: 4 ->

Thanks for sharing this.Nice Effort.

Regards,

AL

Thanks!

Good document ℹ , Thanks For Making & Sharing.

Thanks seshu!

Nice man.

Nice.

Nice document..thanks for sharing ðŸ™‚ .

Hi,

very nice presentation thanks for sharing.

Thanks,

phani.

Hi Vivek,

Very nice document with great illustration.

Thanks for sharing.

Regards,

Nitesh

Awesome Guid....Thanks Vivek..

excellent man keep it up..

Hi,

Really useful.. Thanks for sharing and making us to understand the usage of Percentage function.

Regards,

Antony Jerald.

Hi,

Nice document.

Regards,

Shalaka

good afternoon,

I can help indicate what version of Bex Query Designer are usuando?.

percentage variables mentioned functions do not Appear in my BEx Query DBW,

illustrated by the percentages you have not. !!!

View image.

as the genre?

% CT = there??

% GT = there??

Antamente;

Yimi Castro

Use the SAP Note 2118888 to download our latest patches and test again.

Also, next time, please post any question directly on our Discussion session.

Best Regards,

Edward John

SCN Moderator

hello, perform the instructions in the note 21188888, but continued with the same function variable percentages.

I install that patch to come out variables:% CT% GT% RT?

thanks for your help.

Sincerely

Yimi Castro

Please, open a SCN discussion.

very usefull document