Cross Tab Add percentage Column
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hi
I have following dataset, I'm looking to percentage column to each column
in my original dataset
The no of rows in my data column are more than 1 million
and in name column more than 30+
data | Name | Value | Total | Percentage |
A | AA | 10 | 60 | 16.67% |
A | SS | 20 | 60 | 33.33% |
A | RR | 30 | 60 | 50% |
B | AA | 20 | 90 | 22.22% |
B | SS | 20 | 90 | 22.22% |
B | RR | 50 | 90 | 55.56% |
C | AA | 10 | 60 | 16.67% |
C | SS | 40 | 60 | 66.67% |
C | RR | 10 | 60 | 16.67% |
Expected Output:
data | AA | AA - % | RR | RR - % | SS | SS - % | TOTAL |
A | 10 | 16.67% | 20 | 33.33% | 30 | 50.00% | 60 |
B | 20 | 22.22% | 20 | 22.22% | 50 | 55.56% | 90 |
C | 10 | 16.67% | 40 | 66.67% | 10 | 16.67% | 60 |
Solved! Go to Solution.
- Labels:
- Data Investigation
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hi
I got my expected out-put
1. is there anyway I can reduce no of usage of tools
2. Instead of Right_AA or Right_BB , column headers should be AA - %
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
please share the workflow
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
thq for Quick reply
I have column headers which are scrambled
I need to arrange accordingly in order
sample data: (column Headers)
AA | CC | ZZ | BB | AA% | CC%| ZZ%|BB%
Expected output
AA| AA% | BB | BB% | CC | CC% | ZZ | ZZ%
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
@BRRLL99 ,
The column order is automatically sorted on my original workflow.
That said, if it is a separate issue, here is one solution.
Input
Workflow
Output
BTW, if you don't use "%" in the field name, you would not need to use Dynamic Rename tool, which would save your time.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hi @BRRLL99
I recommend to use the sort field name macro which is already available.
http://www.chaosreignswithin.com/2014/09/blog-macro-pack-2014-q3-release.html
Many thanks
Shanker V
