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
Solved! Go to Solution.
Please forgive me. I am on my way out of the office, but wanted to give you a solution before I left. The attached workflow will produce the index values that you are in need of.
Please review the workflow and I'll be happy to explain this to you if you have questions.
Cheers,
Mark
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.
Thank your for your help
Could you please, save it under this version, I can't open It.
Saved as requested.
Thanks, Marquee! It works perfectly
see https://community.alteryx.com/t5/Alteryx-Knowledge-Base/Adjusting-Alteryx-Files-for-Different-Versio... for adjusting a file version.
Attached is this applied to my approach.
Thanks Joe! Working wlle, I appreciate