Crosstab YTD averages problem

Pulling a large set of customer contacts (100,000s of rows) with each row being a contact. I have a crosstab which groups by location and employee, when the detail rows are the types of contacts (in person, telephone, etc) and then I have months across the top. Here's the problem I'm having:
I need to calculate the average # of contacts per business day. I could countdistinct(contact_date) if I were basing the average on the number of days on which contacts occured (for each dept), but the report has to calculate averages for all departments based on the same # of business days per month (21 in January, 19 in February, etc.). If I just put the number of days on each row in the dataset, I could do min or max or avg and it would work fine for the months' averages, but the totals at the end for YTD won't work. I can't sum, because I have the # of business days on each row, so 1000 contacts in a month with 21 days would put a denominator of 21000.
This is how it would look working the way I want it to.

Thank Graham,
when i use the same technique of setting up a nested counter and highlighting the fields based on that value...
The counter should be set on every column of the row?
It is because i found there is the problem, when i set the counter on every column...all the row will be highlighted without condition (x<=5), i think the counter may overcounted or not work.
for example..
user   action count
1. a     10
2. b     9
3. c     8
4. d     7
5. e     6
when i set the counter (let's say x<=2), on both user and action
i will see the user 1,2 had been highlight and whole action column as well.
and i also struggling with the filtering..
i saw the whitepaper, can it apply in the crosstab?

Similar Messages

  • How to deal with Sum of Averages problem in BPC

    Hi All
    I have a situation where I am trying to calculate Averages.
    P1, P2 and P3 roll up to "All_Projects"
    Similar problem appears at Monthly level (which gets calculated correctly, but incorrectly at quarterly level).
    Please help, how we could possibly resolve this problem?
    Thanks
    AJ

    Hi Ankur,
    Please, read my document Average percent values on nodes to understand how to work with average figures.
    B.R. Vadim

  • Moving average problem

    Hi experts,
    I have a problem with moving average. The workround as follows,
    Step 1. 2008.12.31 open inventory
         itemA    10 q   20 usd  moving average is 20 usd
    Step 2. 2009.01.10  Good Receipt PO
         itemA    10q    30 usd  moving average is 25 usd
    Step 3. 2.2009.02.10  Delivery
         itemA    5q                 moving average is 25 usd   
    But  I have a wrong value in step 1, the price should be 10 usd, how to correct the wrong number on 2008.12.31.
    Can I use inventory revaluation function to correct the error? How to correct it?
    Glen

    Hia Glen Chen
    As my under stand you have 2 problem,if u post only delivery with out invoice
    1.Delivery is posted for wrong value ,Invoice time only customer acount will affect so no problem for customer so, adjust delivery time entry put JE for different amount
    2.Adjust Itemcost for remine quantity, revaluate that.

  • Time averaging problem - signal express

    Can somebody help me with this problem? I am trying to perform time averaging from signal in Signal Express but the input and the output signals are the same. Attached is the printscreen of the process. Can somebody tell me what I am doing wrong?
    Attachments:
    signal.JPG ‏51 KB

    You should post to the SignalExpress board.

  • YTD average issue

    Hi There,
    I setup Dynamic Time Series YTD, it works correctly for sum aggregation, however, for example, I have employee count per month, in this case, it should be average of sum of employee,
    Jan Feb Mar YTD (Mar)
    2 3 4
    It should be (Jan + Feb + Mar)/3 = 3, however the YTD (Mar) number is not showing correctly, I tag "Total Employee" as TB Average.
    Anything I am doing wrong here?

    I check tech reference:
    "Oracle recommends that you avoid assigning time balance properties (First, Last, Average, Skip Missing) to members set for dynamic calculations if you plan to use these members in Dynamic Time Series calculations. Doing so may retrieve incorrect values for the parent members in your accounts dimension."
    Is this the reason? If this is the case, then how do we handle YTD for employee count?

  • Not the average problem with wireless connection. Please help me..

    I've been having wireless connection problems ever since I upgraded to Verizon FiOS from Verizon Wireless. Before upgrading to Verizon FiOS in the fall of 2012, my brother's laptop connected just fine with the connection. After upgrading to Verizon FiOS, my brother's laptop could not connect to the internet. It showed the wireless connection signal as Excellent, but I could not access the internet. Either it would be extremely slow or there would be no connection at all. Also, the router would sometimes restart itself randomly, and it was extremely annoying for me since I am hardwired with my desktop.
    This was weird because my iPod Touch connected perfectly fine to the wifi. So I thought it must be the laptop. But I brought the laptop over to my cousin's house, who also happens to have Verizon FiOS, and the laptop connected perfectly fine. I called Verizon and none of the technicians knew what the problem was. We tried disabling and enabling the router, changing the channels, and anything that was on the list. They couldn't help me and I was extremely disappointed because not only am I not accessing the internet with my brother's laptop, but I am also paying for the service too. The last technician I called in 2012 decided to send me a new router. I hoped this would work, but it did not. This router, too, would completely reset itself numerous times before settling down and letting me use the internet.
    I gave up after that. But in the spring of 2013, I got really fed up with the service I was receiving and I decided to call Verizon again. Again, Verizon tried to help me fix the laptop with their tools and solution guides. But nothing good came out of it, so I decided to ask for a technician to come to my apartment to fix it. We scheduled a day and I was pretty excited since I was almost positive that the connection for the laptop would be fine by then.
    I was wrong. The technician came and only stayed for about 20 minutes. He said it must be the laptop or it must be that the walls are too thick in my apartment. But that can't be it since, in my cousin's house, the router is on the second floor and my brother was using his laptop on the first floor. So it couldn't be the laptop nor the house. So we came to no conclusion. He just attached a mini router to the laptop and hardwired it. I wasn't so content but I was glad my brother could finally use the internet now.
    About three months pass by and I decide to get myself a new laptop. I get it and I am hoping the wireless connection works. It did, so I was almost positive that it was my brother's laptop that was the problem, not the wireless signal. I go on vacation for a few days and I connect perfectly fine at my friend's house. When I return home and try to connect to my wireless connection, it didn't work!
    At this point, I am extremely frustrated. I decided to call Verizon again to replace my router because it was being extremely annoying. It kept resetting itself and I was tired of it. I replaced the router, and this is the router I currently have, but I STILL have the same problem. It resets itself on its own time and I hate it because I'm always in the middle of something. Wow, just wow. There is nothing they could do to help me fix this. I call up a technician, for the millionth time, and he tells me he can't access my router. This occurred with the previous technician who sent me the new router. He tells me his tools are not working and tells me he'll call me back the next day.
    It was the next day and I did not receive any phone call. I am extremely disappointed in Verizon FiOS' service and it's customer service. I leave it alone and I just hardwire my laptop to the router. Of course this works, but what's the point of having a laptop when I have to keep it hardwired on my desk? After a day or two, I decide to check if the wireless connection works, and it did. I was surprised. But every now and then, it would shift on and off. Most of the time, the wireless connection is either EXREMELY SLOW or I get none at all, nonetheless, it still says the connection is Excellent.
    Please, if there is anyone who could help or try to help me, I would most appreciate it. If there is more information that you need, ask me and I will try my best to provide it to you.

    Admittedly, that IS a strange case. Unfortunately, it sounds like all possible troubleshooting has been done by the tech support agents. you mentioned that you were dissatisfied with your other service, did it have a similar problem? theres a possibility of dirty fiber or a bad ONT port, but the random rebooting of the router would almost exclusively be a bad router. question: is the router in the same location as before?

  • OBIEE 11g Time Hierarchy with YTD function problem

    Hi all,
    Platform: OBIEE 11.1.1.5.0.
    We have a Calendar dimension (*time dimension*), that includes the usual time hierarchy (Year > Semester > Quarter> Month > Day).
    Creating a Pivot Table with a YTD measure, using also the Calendar Table hierarchy, everything works fine, and we can drill up & down always getting the right YTD values.
    But, if we add to this analysis, a year and month prompts (filters), we only receive true YTD values, at the day and month levels of the hierarchy. Above this, values will sum up instead of getting the right YTD aggregated value.
    YTD logical column definition = TODATE(Table A.Measure B , Hieararchy.Year)
    Example of pivot values returned:
    *2011*=1192812 (Sum of the 3 Semester not the YTD value)
    Semester 1 = 377305 (Sum of the 4 Quarter not the YTD value)
    Quarter 1= 107460 (Sum of the 3 months not the YTD value)
    Jan = 18507 (YTD value)
    Feb = 35223 (YTD value)
    Mar = 53730 (YTD value)
    Is there anything that we might be doing wrong?
    Thanks in advance,
    Ricardo

    Ricardo,
    You might be aggregatign values twice either at RPD level or at reprot level. Please check on that.

  • YTD function problem

    Hi,
    I got error when I try to calculate YTD sales by using "TODATE" function.
    TODATE("Facts - Contract Value"."Total Value USD","Dim - Contract Date"."Fiscal Year")
    [nQSError: 10058] A general error has occurred. [nQSError: 43113] Message returned from OBIS. [nQSError: 27037] Unresolved level: "Dim - Contract Date"."Fiscal Year".
    How can fix it? Is there another way to get YTD?
    Thanks in advance!

    Oh ;) those are rpd columns
    in Answers pull
    metric 'Total Value USD'->fx->Filter button->select 'Fiscal Year'
    Add button>SQL Expression then use YEAR(CURRENT_DATE)
    just in case if you get any datatype issues then
    you have to do something like below
    FILTER("Total Value USD" USING cast("Fiscal Year" as int) =YEAR(CURRENT_DATE))

  • YTD average in MDX

    Hi,
    I am trying to calculate AVG YTD need an MDX formula.Tried this formula
    (SUM(YTD(),(MEASURES.PERIODIC,ACCOUNT))) / IIF((TIME.CURRENTMEMBER.PROPERTIES("HLEVEL"="1"),12,STRTOVALUE(TIME.CURRENTMEMBER.PROPERTIES("MONTHNUM_FY")))
    any suggessions

    Hi  Nijsink,
    Maybe you need to use  StrToValue([Time].Currentmember.Properties("MONTHNUM")).
    But be careful. This is one of worst performance fucntion in the MDX so if you put it in the Account dimension,
    Its performance will not be good. especailly with SQL2005.
    I hope it will help you.
    Thank you.
    James Lim

  • Use average of crosstab columns in a calculation in the crosstab.

    Using XI R2  I have a crosstab where I need to have the average weeks sales i.e. the sum of one row divided by the number of columns. I've done this in two ways -
    =Average([Forecast Weeky Qty]; IncludeEmpty)
    =[Forecast Weeky Qty]/Count([Forecast Weeky Qty])
    both of which return the correct value provided it is displayed in a cell outside the crosstab. The problem is if that variable is used in the crosstab it just displays the [Forecast Weekly Qty] for that column i.e. it's not doing the calculation at summary level as I need.
    How can I create an average that will display in the crosstab as the same figure in each column (the overall average) and can therefore be used to calculate another row in the crosstab?
    eg
    Sales - 50, 50, 75, 25, 50    should give average of 50. What I get when I put it in crosstab is
    Avge - 50, 50, 75, 25, 50    WRONG.  What I want is
    Avge - 50, 50, 50, 50, 50
    Thanks
    John

    No, your query doesn't work as illustrated below. Your SQL returns views. Your SQL returns rows that have data that isn't null in them because it relies on the table analyze data which will be out of date when the query is being run.
    select * from user_tab_columns u
    where u.HIGH_VALUE is null;
    no rows selected
    SQL> CREATE TABLE test1
    a    NUMBER
    Table created.
    SQL> select table_name from user_tab_columns u
    where u.HIGH_VALUE is null;
    TABLE_NAME
    TEST1
    SQL> CREATE VIEW test_view AS
    SELECT * FROM test1;
    View created.
    SQL>
    SQL> select * from user_tab_columns u
    where u.HIGH_VALUE is null;
    TABLE_NAME
    TEST1
    TEST_VIEW
    SQL> INSERT INTO test1 (a) VALUES (1);
    1 row created.
    SQL> commit;
    Commit complete.
    SQL> select * from user_tab_columns u
    where u.HIGH_VALUE is null;
    TABLE_NAME
    TEST1
    TEST_VIEW
    SQL> select * from test1;
             A
             1
    SQL>

  • Setting in BEx formula for calculation of YTD and MAT

    Hi,
    I have to implement 2 formulae in BEx.
    As I am trying to avoide ABAP coding, can anyone please suggest SETTINGS in BEx FORMULA to achieve these below mentioned 2 formulae -
    1 ) Calculate YTD - Average of the sum of the reported quarter values from the start of the year until and including the selected quarter. But, if we enter Quarter 3 and there is no data for quarter 2 then the average should be equal to sum of data for Q1 and Q2 divided by 2 instead of 3 even though user entered Q3.
    2) Calculate MAT - Average of the sum of the reported quarter values for the last 4 quarters. We need to check last 4 quarters. If data is present only for 3 quarters in the last four quarters then the MAT will be data for 3 quarters divided by 3.
    Please suggest BEx formulae settings, if any for the above calculations.
    Thanks a lot.
    Regards,
    Prerna

    Hi
    I am not sure requirement related YTD is possible without customer exits variable
    But regarding your 2nd requirement
    Calculate MAT
    Create four restricted key figures by using offset (0, -1, -2, -3) and restriction characteristic will be quarter.
    Create a calculated key figure "Count of Quaerter". This will consist of "Number of rows" key figure with exception aggr on the Quarter characteristic and aggr will be "Count for all not eq to 0".
    Create a calculated key figure which will be sum of four restricted key figures divided by Count of Quarter.
    Kindly let me know incase further details required
    Best Regards
    Rohit

  • Does anyone feel like being nice and helping me with an sql problem?

    i know its not java but ive posted on sql forums and got no where, so i was hoping someone here would know how to do what i want to do
    the link to the forum post is
    http://forums.mysql.com/read.php?10,49695,49695#msg-49695
    the basic thing is
    im trying to sort a shopping basket into the most popular products
    so if the data was
    basketID||orderID||productID||quantity
    1||1||2||1
    2||1||3||6
    3||1||4||1
    4||2||2||1
    5||2||4||1
    6||3||4||1
    then im using this statement
    SELECT productID,COUNT(*) AS cat_num FROM shopbasket_table GROUP BY productID ORDER BY cat_num DESC LIMIT 0,10
    which sorts them like
    productID
    4
    2
    3
    but this doesnt take in to account the quantity in the basket which it really should
    as product 3 has 6 in the basket
    so it should be
    3
    4
    2
    anyone know enough about sql to know what im missing from my statement?
    sorry again for posting on the java forum, u peeps are just super smart though and im sure someone here would know :)

    I don't know how to do it in mysql, but it appears to be a "crosstab" kind of problem. This article may help

  • How to design for YTD, Monthly & Last year Key figures

    Hi Gurus:
    Can you pls tell me how to design a data model, where a user wants to get YTD, Monthly & Last year Key figures say Sales volume...
    Is aggregates the answer?
    Pls let me know...Thanks a lot

    Hi Vijay,
    I am a beginner in BI field.
    I have a problem till now i couldnt get the right answer.
    That the reason why i write you today.
    My Problem is with a Query.
    I'm designed a dynamic query which should look like this:
    12.2005-- Jan06 --- Feb06 --- Mar06 --- Apr06 ... Dec06 --- YTD
    My Problem, if you give per e.g Dezember, all Months have to appear. Or you give may, your going to receive till may.The result i receive till now its only the month i gave.How can i get the correct answer? How i am going to calculate the YTD?
    You can directly answer hier:[email protected]
    Thanks

  • Blank columns in crosstab data

    Hello!
    I have a crosstab report that I use that shows revenue forecast by month. The months are across the top of the crosstab. My problem is that if there is no revenue forecast for a particular month, the column does not show up. So I may have columns for Jan, Feb and March and then the next column is May (skipping April). How can I make sure all columns show up even if there is no revenue?
    Thank you!
    Megan

    Hi,
    You will have to outer join a folder or table into your report that defines all the months that you wish to include in the report. Otherwise the report will not know about the missing months. For example, define a folder that always returns the previous 6 months, then outer join this folder to the folder used in your report using the month as the join column. Then take the month column used in your report from the new folder.
    Hope that is clear.
    Rod West

  • General Average question

    I need to create 3 different calculations based on one single measure.
    I have a Fact table containing the measure and two dimensions (time and category).
    It would be something like:
    1 - The average for the current month (AVG);
    2 - YTD average;
    3 - and the running average, for all the entries for each category.
    I have a dashboard prompt with year and month filters. Once the end user makes his selection, the request must display:
    1- Current Month AVG, based on filters;
    2- YTD AVG, based on filters;
    3- Running AVG, NOT based on filters.
    My question is about the running AVG. I've tried the MAVG function, but it doesn't apply to the request needs. Also, since there are filters for the request, I'd not know about the integer I should use in the formula (MAVG, MEASURE, INTEGER).
    Any Ideas of what should I do to have this measure calculated?! I'm considering change the ETL interface and calculate it in a plain cell, but first I need to know if I can have it resolved in the OBIEE Admin Tool.
    Thanks in Advance!

    But what is the difference between average exchange rate, buying rate and selling exchange rate.
    Does system has a way to calculate those exchange rate if we specifiy the exchange rate type or we have to input the figures in SPRO tables in that exchange rate type ?
    Regards,
    Rajesh.

Maybe you are looking for

  • Cisco phone proxy will support on cucm 8.6 or not

    Hi as per document i can see that Cisco phone proxy . Without using vpn connect . Customer want to keep configured Cucm on there Jabber or cisco mobile on the iphone and need to get connected when ever they have an internet access . And also by keepi

  • Std T-code

    i want know how much we purchased in a perticular period. is there any t-code available. i need report based on MRP controller. MC.9 is stock report but i need purchase value based on mRP controller.

  • SQLPLUS login as SYSDBA

    Hi Guys, When I try to login as SYS, oracle complains that I should connect as SYSDBA or SYSOPER. Fine. Now I enter the login user as SYSDBA and enter the password..it fails. However, if I login as user scott and password tiger, I can login. Then fro

  • Installing leopard on G5 imac

    Hello, I just got Leopard in the mail today, but before I open it I was wanting to know a couple things about installing it with my programs: 1) Will certain programs like iWork '08 and Aperture v1.5.6 stop working? (Along with others like handbrake

  • Hardware error: unknown device

    I'm getting the following error when I format my DVD in DVDStudioPro: The recording device reported the hardware error: unknown device 0x03, 0x00. Has anyone seen this error before? I tried recreating my project, making a DVD from an old project that