Solved

How can i count how many TRUE and FALSE are there in each ROW ?


Badge +8

Please appreciate if you could let me know in details

 

image

icon

Best answer by ebygomm 26 May 2023, 09:40

View original

3 replies

Userlevel 6
Badge +32

One way to do this is to explode all attributes to features, merge and count the results.

  • AttributeExploder to create features from all attributes.
  • AttributeFilter to filter only features where value is true or false.
  • Aggregator to merge and count all features grouped by row id and attribute value.
  • FeatureMerger to merge the results back to the original values on row id.
Userlevel 1
Badge +10

If all the attributes with true and false values end in ZTF I would use a ListExpressionPopulator with a Source Attribute Expression of ZTF$ to get all the true false values in a list, followed by a ListHistogrammer which will then count the true false occurrences and return the results in a list

imageYou can then turn the list values into attributes

image

Badge +8

thank you all it works :)

Reply