Help with bins... seems simple...

Arghhh, for too long I have worked with the tool, forget how to do simple stuff. Could someone help me with the following problem?

I have a simple dimensional model that includes information about employees (such as 'Age') and number of employees through time (note: age changes with time, too) I have all this modeled correctly and it works fine.

In the responses, I would like to 'bin' - i.e. under the age of 25 years, 25 to 35, 35-45, etc. I also did it without a problem and the close up with the data in the table that looks like this:

Year age
2008 less than 25 1000
2008-25 to 45-1500
2008-45 to 65-1200
2008 66 or 800 Alumni
2009...

Now, here's the question - in creating views against that for the dashboard, I want to show % of workers in the age groups. that is, I want to show that "Under 25" is 22.2% for 2008.

Here are the problems I encounter:
(a) I tried to calculate the % in a PivotTable. Years down, age groups in crossing, put employee Cnt measure to display the data as a percentage of the line. Works perfectly - but I also need these data GRAPHIC. When I try to this graph, it will eventually return to the counts, percentages.

(b) have tried by adding a base level measure "Total employee Cnt" for the logic model, with the level of the "TOTAL" value for the employee dimension. When you add this to the request, it gives the total for all ages, repeated on each line (which I can then do a division simple column for percent). The problem is, if the user chooses for example only performed for MEN on the dashboard, the figures still show totals for males and females (part of the employee dimension obviosly made gender equality). I don't want really totals for all employees - I want total for all employees currently returned in the result set, grouped by period of time.

(c) doesn't seem to be a way to add bins together - I can not create a column in the query based on 'less than 25 years' + ' of 25 to 45 "+"45 to 65 "+"65 or Older".". "

(d) I guess I could create a calculated measure in the application of each 'package' using a CASE statement, thus spreading out the bins on columns instead of in all of lines. Then it is easy to calculate percentages, and it should work correctly even when using other contrast employee filters (gender, ethnic group, etc.). But that seems kludgy - it's really the best way to go?

Thanks in advance for your advice! I'm suspecting that the BINS are not the right way to go to do this, but not sure.
Scott

Scott,

for (b) try the following syntax in your criteria of responses for the total of your employee (swap countries for your dimension attribute)

sum (sales) / sum (sales by country)

This should return a total filtered? Don't know how this will work if your drilling, however.

See here:
http://www.biconsultinggroup.com/knowledgebase.asp?CategoryID=198&SubCategoryID=364

Published by: Alastair_PeakIndicators on January 21, 2010 07:46

Tags: Business Intelligence

Similar Questions

  • Help with two fairly simple pieces (I think)

    Hey guys, been out of the loop of coding for a bit. Do a quick proof of concept and have two pieces of code simple to set up. Here's what I'm trying to accomplish.

    (1) imitate a simple Parallax Web page, drag upward and down to view content

    (2) have the capacity within each content 'band' to go to the left and to the right if necessary

    So here's what I did:

    -built a movieclip large parent called ONEPAYLAYOUT in the code.

    -have sub/child movieclips called bands.

    -found code to allow me to scroll up and down

    (1) so with code from a tutorial, it does what I need for scrolling, but for some reason, right when you start jumping up to band 2. I have no idea why. Band 1 is perfectly aligned with the scene, so it should launch and just stay put. So I don't know if anyone can see in the code below makes some auto adjustment. My code is below, hope someone can see the number.

    (2) an aid future orientation. If I put a button somehting like band 2 to have a trigger for band 2 go to his second keyframe, a different image. I know that with the event on the primary parent movieclip listener not working or only pick up the click of a movieclilp child/nested. I know it must do a million times because I see it everywhere on the web and in applications. Any ideas?

    import flash.events.MouseEvent;

    to import flash.geom.Point;

    import flash.events.Event;

    import flash.geom.Rectangle;

    Destination point: var = new focus();

    var dragging: Boolean = false;

    var speed: Number = 5;

    offset: var = new Point focus(); our offset

    ONEPAGELAYOUT.addEventListener (MouseEvent.MOUSE_DOWN, startdrag);

    stage.addEventListener (MouseEvent.MOUSE_UP, stopdrag);

    ONEPAGELAYOUT.addEventListener (Event.ENTER_FRAME, followmouse);

    limits: var = new Rectangle Rectangle (0,719.95,stage.stageWidth,stage.stageHeight);

    function followmouse(e:Event):void {}

    {if (dragging)}

    destination.y = MouseY;

    }

    ONEPAGELAYOUT.y = (ONEPAGELAYOUT.y-(destination.y-offset.y))/speed;

    if(ONEPAGELAYOUT.y>Bounds.Top) {}

    ONEPAGELAYOUT.y = bounds.top;

    }

    If (ONEPAGELAYOUT.y <-ONEPAGELAYOUT.height + bounds.bottom) {}

    ONEPAGELAYOUT.y = - ONEPAGELAYOUT.height + bounds.bottom;

    }

    }

    function startdrag(e:MouseEvent):void {}

    offset.y = ONEPAGELAYOUT. MouseY * ONEPAGELAYOUT. ScaleY;

    move = true;

    }

    function stopdrag(e:MouseEvent):void {}

    displacement = false;

    }

    then use:

    import flash.events.MouseEvent;

    to import flash.geom.Point;

    import flash.events.Event;

    import flash.geom.Rectangle;

    Destination point: var = new focus();

    var speed: Number = 5;

    offset: var = new Point focus(); our offset

    ONEPAGELAYOUT.addEventListener (MouseEvent.MOUSE_DOWN, startdrag);

    stage.addEventListener (MouseEvent.MOUSE_UP, stopdrag);

    limits: var = new Rectangle Rectangle (0,719.95,stage.stageWidth,stage.stageHeight);

    function followmouse(e:Event):void {}

    destination.y = MouseY;

    ONEPAGELAYOUT.y = (ONEPAGELAYOUT.y-(destination.y-offset.y))/speed;

    {if(ONEPAGELAYOUT.y>Bounds.Top)}

    ONEPAGELAYOUT.y = bounds.top;

    }

    If (ONEPAGELAYOUT.y<>

    ONEPAGELAYOUT.y = - ONEPAGELAYOUT.height + bounds.bottom;

    }

    If (Math.ABS(ONEPAGELAYOUT.y-destination.y)<>

    ONEPAGELAYOUT.removeEventListener (Event.ENTER_FRAME, followmouse);

    ONEPAGELAYOUT.y = destination.y;

    }

    }

    function startdrag(e:MouseEvent):void {}

    offset.y = ONEPAGELAYOUT. MouseY * ONEPAGELAYOUT. ScaleY;

    ONEPAGELAYOUT.addEventListener (Event.ENTER_FRAME, followmouse);

    }

    function stopdrag(e:MouseEvent):void {}

    }

  • Need help with a &amp; quot; simple &amp; quot; problem :)

    Hello everyone!
    I would be very happy if someone could help me! I created a test with AW and it works very well. My problem is that in the file ".txt" is created (appendextfile), 'firsttrycorrect' responses continue to add themselves among the exercises. How can I do to set the meter to zero, so that each exercise has is own number of right answers? What I have to restart each time the file? !
    Thanks in advance...

    Just to be clear: you want to use the FirstTryCorrect variable;
    the FirstTryCorrect variable to reset when you access the following year? Try
    Initialize (FirstTryCorrect) at the beginning of the next fiscal year.

    HTH;

    Amy

    "oukaischunomai" wrote in message
    News:fmo42t$s7o$1@forums. Macromedia.com...
    > Thx reading me :) I'll try to be clear, but I'm sorry that I don't know AW
    7 >
    > very well and my English is not good...! If I create a program:
    > first
    > first, the person must enter its name ("username") and a .txt file
    > is
    > created in his name. The person must then click on a button
    > to
    > choose what he or she wants to study (he or she has the choice between 3
    > exercises:
    (> active/passive/parent phrases). In all the exercises, the person must
    > read a
    > wrote the sentence and then choose the image corresponding to the sentence
    > between 4
    > choice and finally click on it (I created an interaction and 3 answers
    > have
    (> the status of 'bad' and only 1 has the 'correct' status). Then it goes to
    > the
    > following sentence. At the end of each fiscal year (active/passive/parent), the
    > results are documented in the file .txt created previously (I put simply:)
    > AppendExtFile (username ^ ".txt";) FirstTryCorrect)), so I can have a
    > your comments
    > on the performance of the person... I hope it is clear enough for the
    > time? :) My problem is: when the person starts the 2nd exercise
    > (passive).
    > maintain the correct answers in addition to them from 1
    > exercise
    > (active). So my question is, how can I do, for the good answer «»
    ' > counter "is back to 0 at the beginning of each new fiscal year?
    >

  • Help with display - seems too high on aol and facebook.

    I use Windows XP, professional version.  A few days ago, I noticed that the fonts, icons appear larger than normal.   I checked the default setting on my info 'View' of the control panel and it's OK... 1024 x 768 pixels.  Help, please!

    Hi Judy,.

    Have you tried using a different screen resolution to see if your original resolution has been changed?

    To do this, click the 'display' icon in the 'Control Panel' and click the 'settings' tab, then try to change the 'screen resolution' (lower left corner) '1280 x 1 024 pixels', if your video card supports, by moving the slider down, arrow to the rightfor.

    In addition, on the same tab 'settings', click on the "Advanced" button and note the value of "DPI settting" (about a third of the way down on the left side). It should generally be set to "normal size (96 DPI).

    Let me know the results of your efforts.

    Kind regards

    Fretfull.

  • Help with a very simple password field

    The question can be seen and manipulated by the following:

    Source: http://www.ucsdkya.com/kyaonly.fla
    SWF: http://www.ucsdkya.com/kyaonly.swf

    I use the font incorporated to this flash file, and it seems that it converts anything, my text field for an HTML a element. The trace feature is quite obvious! What can I do to remedy this, while keeping the same look the same. Is there a cheap solution? Thank you!

    Well, it struck me almost a few seconds after (go figure) that I could just copy and past the track any message as string required for entry. Easy solution.

  • Need quick help with a vector mask

    Hey, I'm going crazy with this seemingly simple task and cannot find the answer on Google. Thanks in advance.

    I have a red circle with a white arrow inside/on it. I want to create a vector mask that makes the whole image transparent where the arrow is, as if the red circle is a wall and the white arrow is a window. The rest should just be a red circle with an arrow inside hole. How can I do that using my existing forms?

    Screenshot 2015-09-11 11.16.08.png

    Hello

    It's pretty easy

    merge the two layers

    Select the white arrow in the Quick Selection tool and remove this part.

    Now, you'll get what you ask.

    You can create a copy of both layers first to test this.

    ~ Jitendra

  • [Error number: 0x8024400A] Need help with this error... I reinstalled XP SP1 and I can't get an auto update that's simple to install, just get this error every time

    [Error number: 0x8024400A] Need help with this error... I reinstalled XP SP1 and I can't get an automatic update that's simple to install, just get this error at each time HHHHEEEELLLPPPPP! Thank you

    I had the same problem.  But finally found a solution.  If your listing is similar to mine, then keep.  XP Media Center Edition 2005 (sp2).  AMD Athlon 64 x 2 Dual-Core, HP a1630n desktop computer.

    Go to the HP website, search for sp37394-XP sp3 Upgrade utility Microsoft for systems equipped with AMD processors.

    I had the same 0 x 80240036, 0x8024400a error, but realize my problem was really get manually downloaded sp3 and installed without continue loop crashing and not error messages.

  • Hello, I need help with my photoshop, rececently the majority of my family disappeared merger options and I cant access AVC and other options ive tried reset preferences and it seems to come back but when I add an image and try add text again

    Hello, I need help with my photoshop, the majority of my family rececently disappeared options fusion and I can't access strokes and other options ive tried to reset the settings of preference and he seems to come back but when I add an image and you try to add text again, they'll only options I have are drop shadow , gradient, Chromakey, shine of satin overlay, inner (I use photoshop cc 2015) Please help, my Skype contact options are: RoblivionM8 and email:[email protected]

    Thanks for your time

    Your first screenshot shows the layer style dialog where not all types of effects are indicated on the left. Bottom left of the dialog box, you see a small icon fx with a menu arrow drop-down. Use drop down the menu and make sure all you click on show all effects or restore the default list. I don't know what you're trying the shoe on the second screen capture.

  • Need help with a simple basketball game.

    Hi im new here and I need help with what makes this simple basketball game.

    Im trying to recreate this this video game. I'm not sure if it uses as2 or as3

    If someone could help me make a game like this or point me to a link on how to do it would be greatly appreciated.

    AS2 is used in the video.  If you have other issues, please post in the forum AS1/AS2.

  • Help with the situation where a simple group by statement does not work

    There is a table with two columns, which is memo (varchar2), another is recording_date (date). This table is used to recode an every day event. Right now, I need to know how many events registered each day during the time period (between any of the given day and any given end day). the result by selecting should have two columns the numeration of the event, the recording_date. chances are one day it is not just any event, in this situation there not all inserted rows so far here, but the result by selecting must contain also that day with the column count is set to zero.
    between 2010-4-5 and 2010-4-8
    Count   recording_date
    2             2010-4-5
    0             2010-4-6
    1             2010-4-7
    9             2010-4-8
    Can anyone help with this? Thank you in advance!
    Kind regards!

    Hello
    See if this helps:

    I create a dummy cursor that contains one row for each day of the last year - I then outer join the result of the query against the log_table.

    Here are my RAW file
    Select * from log_data

    07/05/2010 1, TEST
    TEST 2 05/05/2010
    02/05/2010 3, TEST
    30/04/2010 4, TEST
    TEST OF 5 30/04/2010
    30/04/2010 6, TEST
    7-30/04/2010 TEST
    8 TEST 06/05/2010
    9 TEST 06/05/2010
    10 06/05/2010 TEST
    11 06/05/2010 TEST
    06/05/2010 12, TEST
    13 TEST 06/05/2010
    2010-05-06 14, TEST
    15 06/05/2010 TEST
    16 06/05/2010 TEST
    2010-05-06 17, TEST

    And here's the query

    with date_ranger as (select trunc (sysdate-) level datecol
    from dual connect by level<= 365="">
    RAW_DATA as)
    Select recording_date, count (*) numrows in log_data
    Group of recording_date)
    Select datecol, date_ranger numrows, raw_data
    where = date_ranger.datecol raw_data.recording_date (+)
    and datecol sysdate-10-sysdate
    order by 1

    And the result

    1 28/04/2010
    2 29/04/2010
    30/04/2010 3, 4
    4 01/05/2010
    02/05/2010 5, 1
    6 03/05/2010
    7 04/05/2010
    8 05/05/2010 1
    9 06/05/10/2010

    What you want?

    See you soon,.
    Harry

  • Help with multitasking it please?

    Since I got my phone (Moto G 8 GB), multitasking has been terrible. I love the phone, but it's his left out major. Switching between the 2 applications at the same time generally involves having to reload the entire application, even some of the lighter applications such as contacts. I looked in the settings and everything is OK, as the apos as the default background. Also, I don't seem to have any heavy applications running in the background. Facebook is the heaviest app I have on my phone. I wonder if there is anything I can do to remedy to this or if anyone else has this problem?

    When you switch between applications, they restart because the system runs on the RAM. You see the message to reboot on some of these processes because the system killed these processes in order to keep others running and to free some RAM when its need is why you always have a bit of free RAM.

    Even the Air iPad with 1 GB of RAM, even that bike G, has problems, keeping applications running in the background. I'm afraid that this problem is quite normal if you have applications that run in the background taking up RAM. The system kills just the process relatively little important, as Google play music and display of WiFi, to keep others running and have at least a little memory available when it is needed.

    So you're an Android user average above that you have several applications that won't install average consumers, so I recommend going with a phone in the future who has at least 2 GB of RAM.

    P.S. I read in places that Motorola is aggressive with background applications to help with the battery, so maybe that is why the system cannot even keep apps simple people in memory, even if you have still a few available RAM.

  • Need help with configuration of VLAN SF300-24

    Hello

    Let me Preface this with the fact that networking is certainly not my point hard, so here, any help is greatly appreciated.

    I'm trying to segment on a virtual desktop on its own VIRTUAL local network infrastructure using a Cisco SF300-24 Layer 3 switch. I can get the switch to connect to the network with the assigned VLAN 1 an IP address on the subnet of the network (192.168.16.X), but I can't get anything this is set up VLAN 20 (192.168.20.X subnet) to connect past the VLAN 20 (192.168.20.254) gateway IP. The ports assigned to 20 VLAN are defined to access the mode if it matters.

    Here is a diagram to illustrate what it looks like, as there is another (L2) switch involved.

    So I'm not really sure what I am missing here since all settings seem simple enough.

    Hi Simon, I recommend you remove any server active directory and essentially remove all safety factors. This will give the idea of where to start.

    If you take a quite basic set, 2 Windows 7 workstations without a Firewall window activated, they both work as expected.

    It must be remembered that in firewalls, even if they are able to respond to ICMP if the request is from a different subnet, they will not be because he is recognized as a network abroad. You must know the network on these computers or make sure the computer does not care.

    You may be able to do this by simply adding additional subnets on the advanced configuration of the network card (if it does not take too much address space) as an example.

    Or well, as you have discovered that you can add routes, which is a bit heavy and inconvienent, but effective.

    -Tom
    Please mark replied messages useful

  • Need help with text in After Effects

    Hello!

    I'm new with After Effects and need help with something that should be simple.

    I use the effect of the stroke and Freehand drawing, and I'm trying to get the text to go from left to right, but for some reason any, that it seems to be random.

    Any ideas?

    Click and drag as you would layers.

    If you're new to AE, it would be a good idea to take a step back, take some time and go through these resources. Have solid foundation in how AE work will make things go a lot faster and with much less frustration.

  • Making the ear of corn and need help with the ball.

    I do some corn on the COB for an illustration and I need help with the texture of the ball. I've been slowly making progress with gradient for kernels mesh, but I can't seem to recreate the look of the ball at all. I tried to recreate it in a rectangle by using the option in the menu object (1 row, 50 columns) gradient mesh and I'm trying with the fusion in object mode, but not lucky yet. Can someone help to put me on the right track to make the texture:

    http://images.clipartof.com/sweet-corn-on-the-cob-with-husk-royalty-free-vegetable-stock-photo-by-kennygadams-4501068853.jpg

    http://image.shutterstock.com/display_pic_with_logo/660550/660550,1298544740,8/stock-photo-ripe-corn-vector-illustration-on-white-background-71847955.jpg

    http://static5.depositphotos.com/1012047/533/v/950/depositphotos_5336961-Corn-oil.-Stylized-drop-of-oil-and-corn-cob..jpg

    I've been slowly making progress with gradient for kernels mesh, but I can't seem to recreate the look of the ball at all.

    Tank,

    You have published three images stylistically very different. The first is photographic and call probably (but not necessarily) for graduates of mesh. The other two are graphical treatments (and frankly, they're both rather flat; lack of depth).

    Illustration style extends the range of cartoonish in sketchy photo-realism and all the rest. The problem is you didn't show your own attempt so that anyone can have an idea of what you're trying to achieve the stylistic point of view.

    I just need to put in place so that the final step does not appear the whole box. The problem now is trying to make the style of the good brush to reproduce the effect...

    You seem to think you have to build a kind of linear construction and then find a way to reshape the shape of each part of the leaf. Yes, you pouvez approach it this way, but Illustrator users has often tend to be what aunt Molly would call "too clever by half."

    Not everything must be something semi intelligent auto or complex and tedious consruct involving brushes, envelopes, masks, etc, etc. Much can be accomplished by thinking that he just thanks to measure you draw directly economic paths and constructions, which take no more time (often less) and result in very tidy, simple files. Again, a lot depends on what you are trying to achieve the stylistic point of view. But here's an example that only took a few minutes to draw:

    If the above consists of:

    Three roads closed, 8 points each, with ordinary linear degrees

    Three mixtures of open path with three anchor points for each key path

    Six paths closed for shadows / highlights, with 19 points in total

    Mixtures being directly from the paths drawn comic forms, the spacing of the veins 'automatically' and intuitively follows the width from point of view of the worksheet.

    Rather than to build a boilerplate brush, colouring and the weight of each of the three main paths of the vein mixtures can be set individually at any time, simply directly by selecting the key path.

    JET

  • Help with the session variable PHP CS5.5 - Please

    Hi all

    I am needing a little help with the help of a session variable, and I hope someone can point me in the right direction.

    I created a PHP page that uses the Dreamweaver 'User authentication' feature and the basics of this works very well, to direct a user to the correct page depending on whether they are or are not a valid user. I want to customize the page 'user valid' with people, user name entered in the authentication of the user table... a seemingly simple task using a session variable, but I just seem not to be able to make it work!

    The generated code for the AU on page 1 is the following:

    <? PHP

    Validate request to connect to this site.

    If (! isset {})

    session_start();

    }

    $loginFormAction = $_SERVER ['PHP_SELF'];

    If (isset($_GET['accesscheck'])) {}

    $_SESSION ['PrevUrl'] = $_GET ['accesscheck"];

    }

    If (isset($_POST['txtfirst_name'])) {}

    $loginUsername = $_POST ['txtfirst_name'];

    $password = $_POST ['txtsurname'];

    $MM_fldUserAuthorization = "";

    $MM_redirectLoginSuccess = "member_update.php";

    $MM_redirectLoginFailed = 'login.php ';

    $MM_redirecttoReferrer = false;

    @mysql_select_db ($database_panto, $panto);

    $LoginRS__query = sprintf ("SELECT firstname, name OF web_access WHERE firstname = %s AND family name = %s",

    GetSQLValueString ($loginUsername, "text"), GetSQLValueString ($password, "text"));

    $LoginRS = mysql_query ($LoginRS__query, $panto) or die (mysql_error ());

    $loginFoundUser = mysql_num_rows ($LoginRS);

    If {($loginFoundUser)

    $loginStrGroup = "";

    If (via PHP_VERSION > = 5.1) {session_regenerate_id (true) ;} else {session_regenerate_id() ;}

    Declare two session variables and assign them

    $_SESSION ['MM_Username'] = $loginUsername;

    $_SESSION ["MM_UserGroup"] = $loginStrGroup;

    If (isset($_SESSION['PrevUrl']) & & false) {}

    $MM_redirectLoginSuccess = $_SESSION ["PrevUrl"];

    }

    Header ("Location:".) $MM_redirectLoginSuccess);

    }

    else {}

    Header ("Location:".) $MM_redirectLoginFailed);

    }

    }

    ? >

    First of all, the text highlighted in red above seems to be setting the session variable that I need. Is this correct?

    If so, what is the code that I need to put on page 2 to use this session variable? or

    I have to do something else on the page 1 to correctly assign the session variable?

    Would be very grateful for your expertise

    Mark

    It seems that you put the columns incorrectly in the user authentication server behavior. This is the SQL query that checks the credentials of the user:

    $LoginRS__query = sprintf ("SELECT firstname, name OF web_access WHERE firstname = %s AND family name = %s",

    GetSQLValueString ($loginUsername, "text"), GetSQLValueString ($password, "text"));

    You are looking for first name and last name, while you should look for the user name and password of the user.

    $_SESSION ['MM_Username"] is a session variable that stores the login name of the user. To use it in a page, all that is needed is the page start with session_start(). You can then echo the value to display.

    If you want to display the person's true name, you must create a recordset in the second page, use of $_SESSION ['MM_Username'] to search for the first name and the patronymic. Alternatively, you can change the code like this (I copied only part of it):

    $LoginRS__query = sprintf ("SELECT firstname, surname OF web_access WHERE firstname = %s AND password is %s",

    GetSQLValueString ($loginUsername, "text"), GetSQLValueString ($password, "text"));

    $LoginRS = mysql_query ($LoginRS__query, $panto) or die (mysql_error ());

    $loginFoundUser = mysql_num_rows ($LoginRS);

    If {($loginFoundUser)

    $loginStrGroup = "";

    $row = mysql_fetch_assoc ($LoginRS);

    $_SESSION ['full_name'] = $row ["FirstName"]. ' ' . $row ['name'];

    If (via PHP_VERSION > = 5.1) {session_regenerate_id (true) ;} else {session_regenerate_id() ;}

    Declare two session variables and assign them

    $_SESSION ['MM_Username"] = $loginUsername;

    $_SESSION ["MM_UserGroup"] = $loginStrGroup;

    You can then use $_SESSION ['full_name'] in a page which begins with session_start().

Maybe you are looking for