Question
When a workbook is opened, is it possible to sort the data dynamically by the current month's ratio?
When a workbook is opened, is it possible to sort the data dynamically by the current month's ratio?
{ FIXED DATEPART('year', [Order Date]),DATEPART('month', [Order Date]),[Category],[Sub-Category] : SUM([Profit]) }8. Create a calculated field and name it Fixed Sales.
{ FIXED DATEPART('year', [Order Date]),DATEPART('month', [Order Date]),[Category],[Sub-Category] : SUM([Sales]) }9. Create a calculated field and name it Sort.
IF DATETRUNC('month', [Order Date]) = DATETRUNC('month', TODAY()) THEN [Fixed Profit]/[Fixed Sales] END10. Right-click Sub-Category in Rows and select select Sort.