Skip to main content
Question

Dynamic Statistics Calculator


jdh
Contributor
Forum|alt.badge.img+28
  • Contributor

Is there anyway to configure the StatisticsCalculator on a dynamic set of attributes?

I would like to generate a histogram of attribute values, where the attribute name is determined at runtime. Bonus if I can process multiple attributes at once.

2 replies

mark2atsafe
Safer
Forum|alt.badge.img+44
  • Safer
  • April 27, 2023

Could you set up a workspace to copy the selected attribute to a fixed name - like attr1 - and then hard code that into the StatisticsCalculator name field? But it looks like the StatsCalculator field name can be a user parameter, so would that work?


jdh
Contributor
Forum|alt.badge.img+28
  • Author
  • Contributor
  • April 27, 2023
mark2atsafe wrote:

Could you set up a workspace to copy the selected attribute to a fixed name - like attr1 - and then hard code that into the StatisticsCalculator name field? But it looks like the StatsCalculator field name can be a user parameter, so would that work?

Hi Mark,

I had some success with wrapping the StatsCalc in a custom transformer with an attributeDereferencer.

 

However BAD Things happened when I tried to use it while looping through a list. Even with linked fmx, even with exposing the loop input...

 

 


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