I have a table of data such that specific columns of the information needs to be converted from a horizontal layout and inserted below the initial row. To make things more complex any column with a value of zero needs to be ignored and each row may have a different column with a zero.
This query is super close, but for some reason when run it on this data set it is not picking up all the horizontal data. For some reason it is stopping at column "S" rather than going to column "CZ". Also in rows where there are zeros in column "B" it does not pick up the account number and just adds the Revenue Code and Charges to the name above it (see where account 123123141 was skipped, but the object numbers were added to 123123140).
Raw Data:Please Login or Register to view this content.
Data Set (horizontal).png
Post Fix (incomplete):
Post Fix Data Set (Vertical).png
Bookmarks