This site uses different types of cookies, including analytics and functional cookies (its own and from other sites). To change your cookie settings or find out more, click here. If you continue browsing our website, you accept these cookies.
Hi everyone, I need help to make a simple workflow on alteryx! Actually, I want to create an index (100) by variable and Zone, using the value of this variable (%) by zone and divided on national average (Line2). It's very simple to do it in excel, but I have a matrix 4000 x 4000, so I think that alteryx is the best way to do it fast. Any suggestion.Thanks
I see @MarqueeCrew posted a little ahead of me but figured I would post the solution I came up with in case we did something differently. My results are a little off because I copied the integer values from the Excel file, but if given the correct values, the solution would accomplish what you are looking to do!
Here is another version that is more data driven and respects your field names and order without a manual Select tool.
- Record ID to retain the correct sort at the end - Transpose to make the data tall - Field Info to get a list of field names - Record ID to add a Field ID - Join on Name to use Field ID instead of Name (this will ensure correct sorting and naming of fields after Cross Tab at the end) - Filter to pull out the Region records as the index - Join in the Region value on Field ID - Formula to compute the Index Value - Cross Tab to make the data wide again - Dynamic Rename to set the field names
If you do not use these techniques, the Cross Tab tool will sort the fields alphabetically, and any non-letter/number characters will be replaced with underscores.