Siraj.Samsudeen
New Member
- Joined
- Dec 4, 2012
- Messages
- 23
I have a column called Invoice Month which stores the month and year of the invoice as text e.g. Jun 2012, Jan 2013, etc. Now, when I create a pivot table based on this column, I want the months to sort correctly.
To do this, I created 2 calculated columns in the original Invoice table - Invoice Month Code and Invoice Year. Then, I created a new table called Month with 2 columns - Month Code and Month Number. In Month Code, I put Jan, Feb, etc and in Month Number I put 1 to 12. Then I created a relationship between the tables on Month Code. Now, I created a new column which produces the values like this 201201, 201305, etc - I want to use this column to sort the Invoice Month column.
But when I select this column as the sort by column for Invoice Month, I get an circular reference error. I do not understand why sorting has to result in a circular reference. Is there any way to get around the circular reference issue or is there any other solution to this problem?
To do this, I created 2 calculated columns in the original Invoice table - Invoice Month Code and Invoice Year. Then, I created a new table called Month with 2 columns - Month Code and Month Number. In Month Code, I put Jan, Feb, etc and in Month Number I put 1 to 12. Then I created a relationship between the tables on Month Code. Now, I created a new column which produces the values like this 201201, 201305, etc - I want to use this column to sort the Invoice Month column.
But when I select this column as the sort by column for Invoice Month, I get an circular reference error. I do not understand why sorting has to result in a circular reference. Is there any way to get around the circular reference issue or is there any other solution to this problem?