Forum Discussion

marloz1024's avatar
marloz1024
Copper Contributor
Jan 02, 2020

Count only shown values

Hi

 

EstacionAreaPoblacionHelper
A161
A2101
A3151
B162
B2102
B3152
C191
C251
C3153

 

This is a dummy of a table I´m working on:

 

  1. I have stations, A, B, C, each station serves an area and each area has X population. 
  2. Because of their location, some stations share areas and population, station A and B share Area 1 and 2, and population
  3. And other station share areas but not total their population, station C share areas 1 and 2 but because of its location, it serves to a bigger population within those two areas.

I need that, when selecting any station, I can get a SUM of the population of UNIQUE VALUES being a unique value AREA + POPULATION. For that, I though of a helper column, that gives value 1 to the first case registre and 2, 3, 4... to following cases, this work fine for full table but it doesn´t when table is filterd. 

 

EstacionAreaPoblacionHelper
C191
C251
C3151

 

This is and example of what I´m looking for, in previous table on the last row of Helper column, the value would be 3 as we had that case 3 times, now that table is filtered, I need for helper column to show 1.

 

3 Replies

Resources