Hi All
How to transpose vertical date to horizontal date, Samples are below.
From below | ||
Date | Country | Count |
01-Jan-24 | US | 1 |
01-Jan-24 | Africa | 1 |
01-Jan-24 | UK | 1 |
01-Jan-24 | Canada | 1 |
01-Jan-24 | France | 1 |
02-Jan-24 | US | 1 |
02-Jan-24 | Africa | 1 |
02-Jan-24 | UK | 1 |
02-Jan-24 | Canada | 1 |
02-Jan-24 | France | 1 |
03-Jan-24 | US | 1 |
03-Jan-24 | Africa | 1 |
03-Jan-24 | UK | 1 |
03-Jan-24 | Canada | 1 |
03-Jan-24 | France | 1 |
To below | |||
Country | 01-Jan-24 | 02-Jan-24 | 03-Jan-24 |
US | 1 | 1 | 1 |
Africa | 1 | 1 | 1 |
UK | 1 | 1 | 1 |
Canada | 1 | 1 | 1 |
France | 1 | 1 | 1 |
@shahnawaz_khan
find the workflow attached
Thanks, that helped allot.
😊
@shahnawaz_khan
you can mark this done and close thread if solved.
happy to help
Use a cross tab tool, configured as below. Either convert your date field to a Date format prior to the cross tab tool using the datetime tool, or (if you want to keep it formatted the same), use a dynamic rename tool after to pivot to replace the underscores (that will replace the dashes. In the below, the dynamic rename expression is REPLACE([_CurrentField_],"_","-").