We are celebrating the 10-year anniversary of the Alteryx Community! Learn more and join in on the fun here.
Start Free Trial

Alteryx Designer Desktop Discussions

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

Create Pivot table

ZahinOsman
8 - Asteroid

Hi all,

 

I'm having trouble trying to generate a pivot table from the data set below;

 

Trade MnthDbo Fx Daily Trx.Counter NotionalDbo Fx Daily Trx.Settlement DatePrimary Notional ValueTrade EntityFO LocationTrade CountFX RateSGD Amount
2021-1043.294447410.1Non - SG EntitySG FO11.47863313214.9341946332091
2021-1043.294447010.09Non - SG EntitySG FO11.47863313214.9194083018891
2021-1043.294447410.1Non - SG EntitySG FO11.47863313214.9341946332091
2021-1050044474117.69Non - SG EntitySG FO11.528352376179.871791132968
2021-1021178.72444744987.57Non - SG EntitySG FO11.5283523767622.76446003106
2021-10220.394447421.68Non - SG EntitySG FO11.52835237633.1346795119614
2021-10544.644474117.54Non - SG EntitySG FO11.528352376179.642538276566
2021-10544.644470117.47SG EntitySG FO11.528352376179.535553610245
2021-10544.644474117.54SG EntitySG FO11.528352376179.642538276566
2021-1021178.72444744987.57SG EntitySG FO11.5283523767622.76446003106
2021-1021178.72444894987.8SG EntitySG FO11.5283523767623.11598107754
2021-10220.394447021.68SG EntitySG FO11.52835237633.1346795119614
2021-10220.394447421.68Non - SG EntityNon-SG FO11.52835237633.1346795119614
2021-101550190.9844475831397.75Non - SG EntityNon-SG FO11.8197224021512913.11061913
2021-103030242.67444741773492.61Non - SG EntityNon-SG FO11.8197224023227264.23213815
2021-102643875.14444742271300.26Non - SG EntityNon-SG FO11.8197224024133135.9647132
2021-111306120.95444741040609.45Non - SG EntityNon-SG FO11.8197224021893620.32786252
2021-1133644950.28444743207549.62Non - SG EntityNon-SG FO11.8197224025836849.89893153
2021-112870891.944474660623.62Non - SG EntityNon-SG FO11.8197224021202151.60058187
2021-1114738152.5944474499872.9SG EntityNon-SG FO11.819722402909629.91426571
2021-124538045.6944474524584.08SG EntityNon-SG FO11.819722402954597.402090724
2021-12253491948.744474606126.85SG EntityNon-SG FO11.8197224021102982.60737809
2021-12145241.664448116712.69SG EntityNon-SG FO11.81972240230412.4563901131
2021-12754665436444745033216.86SG EntityNon-SG FO11.8197224029159057.47409497

 

I will need to create 2 pivot tables that look like the 2 screenshots below;

 

1) Trade Count

ZahinOsman_0-1684726704820.png

2) Sum of Converted SGD Amount

ZahinOsman_1-1684726746350.png

 

I suppose I will have to create a new column for Month by converting column "Trade Mnth" to read the name of the month itself eg. November, December etc.

 

I've looked everywhere for an example to follow but no luck. Any help is greatly appreciated 

 

Best regards

2 REPLIES 2
FrederikE
13 - Pulsar

Hey @ZahinOsman,

 

You can create the month name with such a forumla: 

DateTimeFormat(ToDate([Trade Mnth]+"-01"),"%B")

 

FrederikE_0-1684734387792.pngFrederikE_1-1684734389085.png

 

If you want to know why it works, see: https://help.alteryx.com/20231/designer/datetime-functions

 

 

With Cross Tab: 

FrederikE_2-1684734489035.png

 

 

Raj
16 - Nebula

This will help,

"DateTimeFormat(DateTimeParse([Trade Mnth], "%Y-%m"), "%B")"



Raj_0-1684742905676.png

 

Labels
Top Solution Authors