Tom Norton
New Member
- Joined
- Oct 13, 2020
- Messages
- 3
- Office Version
- 2019
- 2011
- Platform
- Windows
Using syntax below I am unable to generate a table with years in columns and selected categories in rows. Currently the query output renders all items, both the selected categories as well as years as columns. Maybe there is another way besides the TRANSFORM function to output the preferred table. Any insight would be appreciated.
Crosstab query for Company “ABCD”
TRANSFORM [Company Review Log_2021_ABCD].[Fiscal Year]
SELECT [Company Review Log_2021_ABCD].Goodwill, [Company Review Log_2021_ABCD].[Intangible Assets], [Company Review Log_2021_ABCD].[Current Assets], [Company Review Log_2021_ABCD].[Current Liabilities]
FROM [Company Review Log_2021_ABCD]
GROUP BY [Company Review Log_2021_ABCD].Goodwill, [Company Review Log_2021_ABCD].[Intangible Assets], [Company Review Log_2021_ABCD].[Current Assets], [Company Review Log_2021_ABCD].[Current Liabilities]
PIVOT Format ([Fiscal Year], "yyyy")
IN ("2017". "2018", "2019");
_____________________________________________________________
Where preferred table output will read this way:
Crosstab query for Company “ABCD”
TRANSFORM [Company Review Log_2021_ABCD].[Fiscal Year]
SELECT [Company Review Log_2021_ABCD].Goodwill, [Company Review Log_2021_ABCD].[Intangible Assets], [Company Review Log_2021_ABCD].[Current Assets], [Company Review Log_2021_ABCD].[Current Liabilities]
FROM [Company Review Log_2021_ABCD]
GROUP BY [Company Review Log_2021_ABCD].Goodwill, [Company Review Log_2021_ABCD].[Intangible Assets], [Company Review Log_2021_ABCD].[Current Assets], [Company Review Log_2021_ABCD].[Current Liabilities]
PIVOT Format ([Fiscal Year], "yyyy")
IN ("2017". "2018", "2019");
_____________________________________________________________
Where preferred table output will read this way:
Financial Category | 2017 | 2018 | 2019 |
Goodwill | |||
Intangible Assets | |||
Current Assets | |||
Current Liabilities |