Skip to main content
Solved

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


vimva679
Supporter
Forum|alt.badge.img+9

Please appreciate if you could let me know in details

 

image

Best answer by ebygomm

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

View original
Did this help you find an answer to your question?

3 replies

nielsgerrits
VIP
Forum|alt.badge.img+54

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.

ebygomm
Influencer
Forum|alt.badge.img+39
  • Influencer
  • Best Answer
  • May 26, 2023

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


vimva679
Supporter
Forum|alt.badge.img+9
  • Author
  • Supporter
  • June 6, 2023

thank you all it works :)


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings