ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Charts and Charting in Excel (https://www.excelbanter.com/charts-charting-excel/)
-   -   Using Microsoft Query data in a pivot table. (https://www.excelbanter.com/charts-charting-excel/363-using-microsoft-query-data-pivot-table.html)

slapana

Using Microsoft Query data in a pivot table.
 
I'm using MS Query/SQL to pull data from a database that holds accounting
information.

I have a column (fee) that represents a payment that was made, so,
obviously, the number is negative. In SQL, I can change the code to multiply
the column by -1 (-1*fee)to make the data positive and everything works fine.
However, when I refresh the data in my spreadsheet, it takes that field and
moves it to the last column. Do Pivot Tables in Excel expect the columns in
a certain order, or does it only look for a matching header, regardless of
location? If the former is the case, how to I get Excel to keep the columns
in the same order as the columns in my SQL query?


All times are GMT +1. The time now is 11:57 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com