Business Intelligence How to Calculate average of survey in a Deploy Cube to Display The Some of Yes and NO.

I have created  and deploy this cube but needed to know how I can show the average of the survey result.
Where I need to calculate the number of 'yes' and 'no' or even if possible "no answers" of every distinct survey question. My most Significant table is the" valuefield" who is  part of the fact table and has "yes" and "no"
or null info. Am using MS Visual Studio and SQL SERVER Just a sample of 10 survey questions.
ANY GEEK OUT THERE?

Hi G33km,
According to your description, you want to calculate the numbers of survey which is "YES" or "NO", right? In this case, create a calculated measure, in that measure using
Filter function to return the set that results from filtering a specified set based on a search condition (in your scenario is that survey is "YES" or "NO"). And then use the
Count function to return the numbers of survey.
Besides, here is a blog about Optimizing Count(Filter(...)) expressions in MDX, please see:
Optimizing Count(Filter(...)) expressions in MDX
Hope this helps.
Regards,
Charlie Liao
TechNet Community Support

Similar Messages

  • How to calculate Average balance for an account

    Hi,
    How to calculate average balance for an account for a particular period say for JAN-12 period and after the end of that period for another two days 01-feb-12 and 01-feb-12 ?
    I'm using the following query :
    SELECT cc.segment1||'-'||cc.segment2||'-'||cc.segment3||'-'||cc.segment4||'-'||cc.segment5||'-'||cc.segment6 "Account_XX",
    nvl(sum(l.accounted_dr - l.accounted_cr),0) "Balance"
    FROM gl_code_combinations cc,
    gl_je_lines l
    WHERE cc.code_combination_id = l.code_combination_id
    AND l.set_of_books_id ='XX'
    and code_combination_id = replace it with code combination_id for account_xx
    AND l.effective_date <= '31-Jan-12' (january period end ??)
    GROUP BY cc.segment1||'-'||cc.segment2||'-'||cc.segment3||'-'||cc.segment4||'-'||cc.segment5||'-'||cc.segment6
    There are some discrepancies in "average balance" after end of month (Jan-12)?
    How to calculate average balances for a particular account (Account_XX above)from end of month of Jan to first two days of february?
    Thanks,
    Kiran

    Kiran,
    Please let me know first, is Average Balancing feature enabled in your GL Ledger?
    Regards
    Muhammad Ayaz

  • How to calculates averages and send to a file?(source code)

    how to calculates averages and send to a file?(source code) I need to get started but I don't know where to begin...........the book I have doesn't really say how to handle averages and send to a file.................anybody got suggestions on how to get started? I am a newbie so place in layman's terms.............thanx

    To calculate an average: add all of the numbers together and divide by how many numbers you added together.
    ex: (1 + 2 + 3 + 10)/4 = 4 (4 is the average)
    As for writing them to a file, look over the API for random or sequential access files.

  • HT3887 my bluetooth says 'Not Available' how do i get it to work again. I have restarted the computer several times and have replaced the batteries in both the keyboard and mouse and yet it still is not working! please help

    my bluetooth says 'Not Available' how do i get it to work again. I have restarted the computer several times and have replaced the batteries in both the keyboard and mouse and yet it still is not working! please help

    I have had the same problem. It was cured by turning computer off and/or restarting it. I am not sure  if once was enough. I think shutting down must cut out whatever it is that blocks bluetooth. Good luck

  • HT4061 How do I consolidate purchases from two different ids that are on the same bank account, and eliminate the extra id without losing any purchases?

    How do I consolidate purchases from two different ids that are on the same bank account, and eliminate the extra id without losing any purchases? I want my music to match on both ipad and computer.

    Purchases are forever tied to the AppleID they were bought with. There is currently no way to consolidate AppleIDs. Sorry.

  • HT203167 how do i authorize my computer to download all my music for the store menu? and where do i find the store menu?

    how do i authorize my computer to download all my music for the store menu? and where do i find the store menu?

    It should be at the top of your Mac's iTunes e.g.
    And re-downloading : http://support.apple.com/kb/HT2519

  • HT1212 how to downolad pictures from a iphone 5 to a pc if the screen is broken and the iphone is locked with a passcode?

    how to downolad pictures from a iphone 5 to a pc if the screen is broken and the iphone is locked with a passcode?

    You won't be able to.

  • How do I know if I have new Ipad with retina display the model says MC706B/A

    How do I know if I have new Ipad with retina display the model says MC706B/A

    You have a 3rd generation iPad. And yes it is a Retina model.
    Introduced     March 2012
    Discontinued     October 2012
    Model Identifier     iPad3,1
    Model Number     A1416
    Order Number     MC705LL/A (16 GB Black) MD328LL/A (16 GB White) MC706LL/A (32 GB Black) MD329LL/A (32 GB White) MC707LL/A (64 GB Black) MD330LL/A (64 GB White)

  • I have no idea how to find my serial number to launch Lightroom. I have the student teacher edition and I'm using a mac

    I have no idea how to find my serial number to launch Lightroom. I have the student teacher edition and I'm using a mac.

    How did you purchase Lightroom? Download? Package?
    Have you followed the instructions to verify that you qualify for academic discount?

  • How to calculate average value?

    Hi all,
    I'm using Lumira 1.15. I'm doing some practices with the sample dataset BestRunCorp... I want to calculate the average value of gross margin which is grouped by lines so that I can use a line chart to show the difference between the gross margin value and average value.
    How can I achieve this ?
    Best regards,
    Shuang

    It looks like it calculates the average based on the dimension
    See below:
    If you take the "Best run" Excel file, sort by country, calculate the average in Excel, it matches Lumira's 4,056 (for Argentina)
    I am not sure I follow your divide by 12 logic?

  • How to calculate average in result in BEx

    Hi Expert,
    I have 2 fields one is project and another # of days to finished project (I used formula to calculate the # of days from start to finished date. NOw in result need to calculate average of days took to finished all projects.
    I belive formula will be ( # of days / projects) but how we can apply in query. If anyone know please help out I really appericiate.

    Hi,
    Right click on your formula and go to properties, there you have the options as "Calculate Result as" and "calculate single value as" from the drop down box you can select option as "Average".
    Regards,
    Durgesh.

  • Oracle Business Intelligence How to choose data set based on a condition

    Hi,
    I am using Oracle Business Intelligence for creating reports, i am facing a situation where i have two quries (data sets in BI), one to display a Failure message and other to fetch data from the table to be displayed in the report.
    The problem is i am unable to choose which data set to run based on a condition. How to use a condition based on which the dataset will be run
    For example : i will read a table column value if it is 'S' means success, then i have to run the dataset to fetch the data from the table.
    If the column value has 'F' then i have to run the dataset which will display failure message
    Please let me know if any of you have any idea on this
    Thanks in advance
    Muthukumaran

    Hi Chinna,
    You have to use some scripting as well as coding to perform the tasks listed by you. First of all make your form Dynamic, In your Adobe lifecycle Designer, open your form,
    Goto, File --> Form Properties,
    Goto the Defaults tab,
    Select "Dynamic PDF" for the XDP Preview Format:
    Click OK.
    This setting will now allow dynamicity in your Form, when you view it in PDF Preview tab.
    For Hiding/Unhiding the fields/SF, you can use the presence property and set it based on the conditions. like:
    if (this.rawValue == null)
    TextField1.presence = "hidden";
    For your second task, you may map a method corresponding to onSubmit event of the IF and write the code to create the workflow and make RFC call here.
    For third one, you need to convert the PDFObject from Binary context into a byte array and save it at appropriate location.
    Hope I have answered all your queries.
    Cheers,
    Arafat

  • How to calculate Average using Dimension Formulas  or Default Logic

    Hello
    I am trying to calculate the average without success. Do you know how I can Achieve the following? :
    We have multiple u201Cofficesu201D in the ENTITY dimension that fall under a Region. Let´s say 400+ offices under 20 Regions
    For example:
    Region1
       Office A
       Office B
    Region2
       Office C
       Office D
       Office E
    We have an Account named 'SalesUnits', and I am looking to get an Average Sales by Region and then be able to compare one Office against the Average of the REGION it belongs to.
    So If I have:
                                Sales Units
    Office C                   20
    Office D                   10
    Office E                   15
    Average of Region 2 would be 201015/3 =15
    But the number of office is variable, Sometimes I can have more offices.
    So I will have to count the number of offices that belongs to that region.
    I need this average so every office can compare their sales against the Region Average.
    Do you know how I can do this? I have tried some MDX syntax but without sucess.
    Thanks in advance!
    Anna

    Hi Anna,
      This will need to be done in Dimension logic as I assume, you;'d like to have the average up the region heirarchy.
    I'd suggest having 3 accounts for this
    ID .....................................FORMULA
    SALES_UNITS...................
    OFFICE_COUNT.................1
    UNITS_AVEREAGE............SALES_UNITS/OFFICE_COUNT
    The formula bit, goes in the formula column. When look at office count against the region heirarchy, it will sum up the 1's thereby giving you the denominator for the formula and you'll get the avereage up the region heirarchy.
    Tim

  • How to calculate Average time from a date field

    Hi All,
    I have a date type field in my table .
    I want to calculate average time for a given country in a select query. Date has to be exculded. Only time has to be taken into consideration.
    Kindly help me.
    Sample data
    india 25-JUN-09 08:12:45
    india 25-JUN-09 09:01:12

    Take which one you want.WITH dates AS
      (SELECT sysdate x FROM dual
        UNION
       SELECT sysdate + 1 +1/24 FROM dual
    SELECT TO_CHAR(to_date(AVG(to_number(TO_CHAR(to_date(TO_CHAR(x,'HH24:MI:SS'),'HH24:MI:SS'),'sssss'))),'sssss'),'hh24:mi:ss')
       FROM dates;
    WITH dates AS
      (SELECT sysdate x FROM dual
        UNION
       SELECT sysdate + 1 +1/24 FROM dual
    SELECT floor(24 * AVG(x- TRUNC(x)))
      || ':'
      || floor(mod(24 * AVG(x- TRUNC(x)),1) * 60)
      || ':'
      || floor(mod(mod(24 * AVG(x- TRUNC(x)),1) * 60,1) * 60)
       FROM dates;By
    Vamsi

  • How to calculate average if some of measure values are 0

    Hi
    I created a webI report on top of a Bex query, I have a more than 10 different measure in WebI report column on which i need to calculate average.
    If I  use the Average function provided with in WebI report it is calculating average for the measures which are having 0  values too, but i need to calculate average on a column only for those values which are not 0
    Ex:  Measure Quantity has values in the report like
    100
    100
    0
    100
    100
    Average function is calculating as 400/5
    but I need 400/4, because one of the value is 0, so i need to avoid that count which is zero and should divide it by 4 but not 5.
    One way is to custom create measure for all measures and make a if else condition and divided by that custom measure, but is there any other procedure?

    i hope this can help
    =Average([myMeasure]) Where ([myMesyre] <> 0)
    good luck
    Amr
    before the 0 add <> not Equal too sign < and >
    Edited by: Amr Salem on Jan 19, 2011 9:29 AM
    Edited by: Amr Salem on Jan 19, 2011 9:30 AM

Maybe you are looking for