Skip to Content
author's profile photo Former Member
Former Member

HOW TO CALCULATE COUNT ON DIMENSIONS IN BEX

Hi gurus

I am beginner of SAP BI

I have a data in my query level like this 2000 records for caleder year 2009.

Here units and ctl are key figures in columns.

calender year, feeder name and cust name are dimensions in rows level

Ex: output on rsrt screen

calender year feeder name cust name units(KWH) ctl (KWH)

2009 xxxx aaa x A

2009 " bbb y B

2009 zzzz ccc x C

" " " " "

" yyyyy " " "

" " " " "

" " " " "

"

1.) I would like to count number of cust names based on feeder name, here each feeder name contains some number of cust names.

I would like to calculate how many cust names for feeder xxxx,how many cust names for feeder yyyy andhow many cust names for feeder zzzz

like that way I need to count.

2) I also need to count number of feeder name based on the year 2009

I hope you understand the issue.

Thanks in advance

Add a comment
10|10000 characters needed characters exceeded

Related questions

7 Answers

  • Best Answer
    Posted on Jan 10, 2014 at 01:39 PM

    Hi Kohli,

    Are you maintaining any constant value KF as 1.

    As my understanding if you want count number of customer and feeders

    1. create one KF with properties of DEC and add in dso and Cube level and transformation level give constant value 1. its easy calculate the customer and feeders

    2. after work on exception aggregation.

    hope it will help.

    Thanks,

    Phani.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jan 10, 2014 at 05:26 PM

    Hi,

    1.) I would like to count number of cust names based on feeder name, here each feeder name contains some number of cust names.

    I would like to calculate how many cust names for feeder xxxx,how many cust names for feeder yyyy andhow many cust names for feeder zzzz

    like that way I need to count.

    First make one CKF and give constant value as 1.---Hit the aggregation tab--Exception aggregation as count of all values that are not equal to zero--Reference characteristic as Customer.

    Now create RKF based on this CKF--Restrict it with feeder = XXX.

    Like this make separate RKF for each feeder type for which you need the count.

    In the same way you can get the count for the year as well.

    Regards,

    AL

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jan 10, 2014 at 01:09 PM

    Hi Kohli,

    go to the key figure properties.

    there are different choices for "calculate single values" and "calculate result as".

    There you can choose count options.

    regards

    Cornelia

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jan 10, 2014 at 02:11 PM

    Please search forum for "How to calculate count of documents in Bex".

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jan 12, 2014 at 02:50 PM

    Hi,

    Create a replacement path variable on the dimension you want to use as count. Then create a formula, make use of this replacement path variable basically you've to use if..else condition in BEx query.

    I had came across similar kind of requirement and proceeded like the same.

    Regards,

    Antony Jerald.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 13, 2014 at 06:19 AM

    Thanks Kodandapani,

    I sort it out quickly

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 13, 2014 at 06:20 AM

    Thanks for all, I got it

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.