Hello,
I am new to Looker, so apologies if this is a dumb question. I have searched online, in this Discourse, and attempted to resolve this on my own - but to no avail.
I am building a dashboard which contains a table for its Visualization, with 2 dimensions and the rest of the measures are all calculated fields. The issue I am running into is that when I sort my data in the “Results” section below the “Visualization” section, the pivot measure (date) keeps the sort order as it is (which is what I want). However, when I sort my data in the “Visualization” section above the “Results” section, the pivot measure’s order (date) changes.
As you can imagine, this messes with my “Previous 7 day Revenue” table calculation (using the “pivot_index(${field}, 1) + pivot_index(${field}, 2) + … + pivot_index(${field}, 7)” function). To note, the previous 7 day revenue field is a rolling 7 day; with data up to Tuesday, it compares the current Wed - Tues vs. the previous Wed - Tues. Tomorrow, it will be Thurs - Wed vs previous Thurs - Wed, etc.
This is the layout of the “Results” pane, the columns noted as “Shown” will display in the Visualization while the “Hidden” columns are not shown. I want the sorting to be the most recent date on the far left while 10/1/2017 on the far right. Everyday, it will append a new date with data to the far left. Right now, the far left date is 1/30/2018, but tomorrow it will be 1/31/2018, and so on and so forth:

(Apologies for the excel image, I didn’t want to show my company’s proprietary information but wanted to get my point across with some visuals)
Is there a work around or is there a reason why this keeps happening? It makes it difficult for me to send this dashboard out to anyone since I need to always tell them to never sort any of the data tables.
Thanks!