Alteryx Designer Desktop Discussions

Find answers, ask questions, and share expertise about Alteryx Designer Desktop and Intelligence Suite.

In Pivot - convert column Label to row format, sub total and merge cells

urbot
7 - Meteor

Hello,

 

 

I want to develop a workflow which generates the result like pivot but it should be in vertical order and merged cell.

 

Example: we have to filter each dept name(dynamically), sum the bonus and count of annual salary , now the result must be in row order not like column order,

 

cells must be merged based on business unit of respective department. this report is generated on monthly basis  so i have data like below in a work book with different sheetname based on department and sum and count should be performed business unit of respective department, sum.bonus should come one by one with sub total of each category. above is just an example i have 1million records uniq depart name - 30 values, business units also N numbers and calculation column like bonus, salary similarly i have 14 columns to perform average, count and sum but each category must have subtotal of each dept, please feel free to write if you have any questions

 

 

Master Data sample:

 

https://github.com/U-rbot/Alteryx_workflow_to_write_output_in_xlsm_macro_workbook/raw/main/sample.xl...

 

Employee IDDepartmentBusiness UnitAnnual SalaryBonus %
E02004ITResearch & Development$83,576 0%
E02005ITCorporate$98,062 0%
E02007ITManufacturing$66,227 0%
E02010ITManufacturing$97,630 0%
E02012ITManufacturing$40,499 0%
E02014ITManufacturing$150,558 23%
E02017ITCorporate$64,208 0%
E02020ITSpecialty Products$95,729 0%
E02023ITResearch & Development$83,323 0%
E02031ITSpecialty Products$72,860 0%
E02035ITCorporate$97,509 0%
E02048ITSpecialty Products$54,700 0%
E02050MechResearch & Development$65,109 0%
E02052MechCorporate$72,388 0%
E02054MechSpecialty Products$74,004 0%
E02057MechManufacturing$76,659 5%
E02073MechResearch & Development$81,083 0%
E02077MechSpecialty Products$83,070 0%
E02079MechCorporate$70,923 0%
E02085MechManufacturing$99,937 0%
E02093MechManufacturing$72,637 0%
E02095MechManufacturing$68,592 8%
E02097MechResearch & Development$65,073 0%
E02107MechSpecialty Products$55,039 0%
E02115MechResearch & Development$41,946 0%
E02116MechCorporate$79,388 0%
E02117MechCorporate$83,854 0%
E02118MechSpecialty Products$126,550 15%
E02122MechResearch & Development$79,975 0%
E02124MechCorporate$239,395 33%

 

Excel Pivot Output:

 

 

urbot_0-1681985729363.png

urbot_1-1681986066802.png

 

 

but i want output to be created like below in sheet name IT :

 

Pivot generated right side dataBusiness Unit (Dept based)Value
Count of Annual SalaryTotal12
Corporate3
Manufacturing4
Research & Development2
Specialty Products3
Sum of Bonus %Total0.23
Corporate0
Manufacturing0.23
Research & Development0
Specialty Products0

 

 

and Second output to write in Mech sheet name:

 

 

Pivot generated right side dataBusiness Unit (Dept based)Value
Count of Annual SalaryTotal18
Corporate5
Manufacturing4
Research & Development5
Specialty Products4
Sum of Bonus %Total0.61
Corporate0.33
Manufacturing0.13
Research & Development0
Specialty Products0.15

 

attaching image since table format got changed

urbot_0-1681987024278.png

 

 

 

 

1 REPLY 1
urbot
7 - Meteor

@AbhilashR  @grossal Please assist asap

Labels