Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
julesjohnson
Contributor III
Contributor III

Variable in Set Analysis

Hi,

Can anyone tell me how to fix this expression.

=Count( {$<$(ROIC)= '{">=1} >} Distinct [Part_Number])


I would like to count the number of parts where the variable ROIC" is greater than 1, for example.


Thanks,

16 Replies
julesjohnson
Contributor III
Contributor III
Author

Hi Jason,

Just wanted to let you now that I was never able to make this work.  Thanks again for your help.  I will keep working on it.

Thanks,

Juliette

vishsaggi
Champion III
Champion III

Can you share a sample app where you have the issue? Where you want to display this data in a text object?

What value can you see for your ROIC variable when used in a text object?

jmvilaplanap
Specialist
Specialist

Do you have a quote in your expression

Try to take it off and add another one after the 1

=Count( {$<$(ROIC)= {">=1"} >} Distinct [Part_Number])

julesjohnson
Contributor III
Contributor III
Author

variable_error.png

I'm still getting an error in the expression.

jmvilaplanap
Specialist
Specialist

Hi,

It doesn't matter, when you are using variables, the expression checker is not working properly, try if works.

vishsaggi
Champion III
Champion III

Try this?

= Count({< ROIC = {"$(= $(ROIC) >= 1)"} >} DISTINCT [Part_Number])

sunny_talwar

I would think something like this

=Count({< Part_Number = {"=$(ROIC) >= 1"} >} DISTINCT [Part_Number])