Skip to main content
Solved

Count (add up) empty values from a diffrent row

  • October 8, 2025
  • 5 replies
  • 64 views

kevink
Contributor
Forum|alt.badge.img+3

 

This is the source table. The verblijfsbagid is a unique number of a building. Where the colum leegstand = J, i want a value in the colum leegstaand_maanden. The first empty row is 1 then 2 then 3 etc. I used diffrent transformers, like neigborfinder but it didnt work.

Here under is the output that i want to see (red numbers):

 

 

Best answer by takashi

In that case, as ​@nielsgerrits  mentioned, a combination of Enable Adjacent Feature Attributes option and conditional value setting works for you.

 

This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

5 replies

nielsgerrits
VIP
Forum|alt.badge.img+61

One way to do this is to use an AttributeCreator where under Advanced Adjacent Feature Attribues is enabled. This way you are able to fill a row based on a value in a previous row.

Then use Conditional Value. How I configure this is to create a mockup with formulas in Excel, and then tranplant the logic from excel to the conditional value.


takashi
Celebrity
  • October 8, 2025

Hi ​@kevinkies ,

A possible way is, separate the data flow into two streams for LEEGSTAND = J or not with Tester and add sequential number attribute starting with 1 to the features passed the test with Counter (Count: LEEGSTAND_MAANDEN).

Alternatively, you can update LEEGSTAND_MAANDEN with a conditional value setting in AttributeManager, using @Count function like this.

 


kevink
Contributor
Forum|alt.badge.img+3
  • Author
  • Contributor
  • October 8, 2025

Thanks ​@takashi it works fine if there in order with no leegstand=N in between. U see the leegstand J or N is not always in order after each other:

 

here u see row 72-73-74 with yes and de conditional value works fine. Further in the table J will come again, but i need that he counts again from 1. Like here below:

 

it looks difficult the make that possible


takashi
Celebrity
  • Best Answer
  • October 8, 2025

In that case, as ​@nielsgerrits  mentioned, a combination of Enable Adjacent Feature Attributes option and conditional value setting works for you.

 


kevink
Contributor
Forum|alt.badge.img+3
  • Author
  • Contributor
  • October 8, 2025

it works fantastic!