I’m working on a dynamic character sheet for a tabletop game and have the following table:
It has a list of afflictions and the number of stacks of each affliction affecting the character (i.e. the number of times the character is affected).
I also have a section that represents a “quick summary” of important info, and so I have a view table showing only the non-zero afflictions. They are ordered by stacks, not by name, since that’s the more important information in the quick view:
Thus, the view has both a sort condition and a filter condition:
At the end of the turn, the smallest stack is decreased by one. So I want to find out what the last row of the table view is. To illustrate the problem, I created a new button column with a condition:
But this does not work, as you can see:
Note that Temperance is not the last row in the Active Afflictions table, nor in the Afflictions table. Based on poking around, it appears that the
Active Afflictions.Last() call ends up referring to the last row after the filter, but before the sort. It should refer to the true last row instead.