karthik104
New Member
- Joined
- Dec 4, 2015
- Messages
- 7
Hi,
I have data in a pivot table:
<colgroup><col span="2"><col span="10"></colgroup><tbody>
</tbody>
I looking to extract the column (in this case the date) with the first non-zero occurrence for each label:
Output should be like this:
<tbody>
</tbody>
Any thoughts/suggestions on how to do this?
I have data in a pivot table:
Row Labels | 12/27/2015 | 1/3/2016 | 1/10/2016 | 1/17/2016 | 1/24/2016 | 1/31/2016 | 2/7/2016 | 2/14/2016 | 2/21/2016 | 2/28/2016 | 3/6/2016 |
ABB | 0 | 0 | 310 | 400 | 500 | 22 | 2223 | 2232 | 323 | 6565 | 655 |
ABC | 777 | 777 | 777 | 777 | 777 | 787 | 798 | 9899 | 98982 | 98956 | 98956 |
XYZ | 0 | 0 | 328 | 328 | 328 | 328 | 428 | 5 | 878 | 98789 | 64654 |
ZMN | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 500 | 500 | 500 | 500 |
<colgroup><col span="2"><col span="10"></colgroup><tbody>
</tbody>
I looking to extract the column (in this case the date) with the first non-zero occurrence for each label:
Output should be like this:
Row Labels | Date | ||||||||||
ABB | 1/10/2016 | ||||||||||
ABC | 12/27/2015 | ||||||||||
XYZ | 1/10/2016 | ||||||||||
ZMN | 2/14/2016 |
<tbody>
</tbody>
Any thoughts/suggestions on how to do this?