LAE

Welcome to the LAE community!  Please feel free to start a discussion in the discussion tab or join in a conversation.

Discussions

Members

Resources

Events

 View Only
  • 1.  Create a Pivot Table

    Employee
    Posted 06-05-2013 21:17

    Note: This was originally posted by an inactive account. Content was preserved by moving under an admin account.

    Originally posted by: Borg_species5618

    Hello All,

    Tried to find an answer on this forum as well as via Google, but no luck

    This is my input

    Product Bonus Region
    Green 34 North
    Blue 89 North
    Orange 123 North
    Yellow 95 North
    Orange 37 South
    Blue 34 South
    Orange 12 West
    Green 28 West
    Blue 17 West
    Blue 93 East
    Green 76 East
    Orange 56 East

    This is what I want as an output (essentially a pivot table) [not too concerned about number formatting]

    Product East North South West Grand Total
    Blue 93.00 89.00 34.00 17.00 233.00
    Green 76.00 34.00 28.00 138.00
    Orange 56.00 123.00 37.00 12.00 228.00
    Yellow 95.00 95.00
    Grand Total 225.00 341.00 71.00 57.00 694.00

    I believe I should be using the node "Pivot - data to Names" but not sure what the syntax should be, hope this info is enough for someone to assist

    Frank


  • 2.  RE: Create a Pivot Table

    Employee
    Posted 06-06-2013 01:37

    Note: This was originally posted by an inactive account. Content was preserved by moving under an admin account.

    Originally posted by: chris.mannion

    Hi Frank,

    The latest LAL release, 2.6.1, includes a new Pivot Table node that will do exactly what you're after. If you pump your data in to a Pivot Table node with the 'Group for row' as Product, 'Group for column' as Region and the aggregation type set to 'Sum' then it will produce the output table pretty much exactly as you've posted here. Hope that helps.

    Chris


  • 3.  RE: Create a Pivot Table

    Employee
    Posted 06-06-2013 15:56

    Note: This was originally posted by an inactive account. Content was preserved by moving under an admin account.

    Originally posted by: Borg_species5618

    Chris, appreciate your assistance in answering my question.

    Not sure how to get this release (LAL 2.6.1)...all I know is that I have Lavastorm version 4.5.3
    I will google a solution.


    Hopefully until I get this node I can work out another way of creating a pivot table solution
    Thankyou

    Frank


  • 4.  RE: Create a Pivot Table

    Employee
    Posted 06-07-2013 00:52

    Note: This was originally posted by an inactive account. Content was preserved by moving under an admin account.

    Originally posted by: Wizardous

    Hi Borg,

    Best way doing this, is on LAL 2.6.1 release as Chris mentioned. You can find release here http://downloads.lavastorm.com/LAL%2....6%20Setup.exe

    To use the node pivot table on this release I think you should have Lavastorm 4.6. So it could be better if you download and install 4.6 version. If it is not possible at the moment, here I attach a graph that may work for you. data_to_names_ex.brg

    But it is not a perfect solution, as you need to run twice by changing a parameter.

    - On first run you need the select "Union" on "NameSet", in the "Pivot data to names" node "Optional" tab.
    - When it comes with an error just switch the selection to "Exact" and hope you get what you want.

    I don't know why this error occurs, and I did not need to ask why? as I don't use this node much. I am sorry about that.

    Regards,

    �zg�n