Under Queries, select OrderDetails.
Go to Add Column Tab > Click Custom Column
Under New column name, type in TotalIncludingTax. Enter the formula as shown
[Quantity]*[UnitPrice] + [Quantity]*[UnitPrice]*[TaxRate]/100
Go to Transform tab > Change Data Type to decimal number.
Select the AccountOpenedDate column from Customers Query
Go to Add Column tab > Click Date > Select Age
A new column called Age is created at the end of the table.
Now we want to change it from duration to number of years
Go to Transform tab > Click Duration > Select Total Years
Still on the Transform tab > Change the type from Decimal Number to Whole Number.
Double-click the Age column heading then rename it to AccountAge
Select the Date Query
In the Add Column menu select add a Custom Column
Under New column name, type in MonthYearSort. Enter the formula as shown
([Calendar Year]*100)+[Calendar Month Number]