Forum Discussion

kleigh's avatar
kleigh
Responsive Resident
3 months ago
Solved

Slow visual calculation (PREVIOUS and RUNNINGSUM)

Background: I'm trying to add a visual indication of groups (each person can have multiple rows) to a table. I have made a visual calculation that performs this in three parts.  Part one...
  • johnt75's avatar
    johnt75
    3 months ago

    You need to avoid a RUNNINGSUM as that is an inherently expensive operation. If what you are trying to achieve is to visually highlight when rows belong to the same or different people, I think I would assign each person a colour, so that no matter what the order of the visual is the same person always has the same colour.

    I think you could do this by using the RANK method I proposed and applying the MOD logic within the measure, or using some other way to turn a unique Person Key into a unique colour.