Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Access the Expression labels in an expression group

HI,

I have a group of 3 expressions in a chart. I want to identify which expression the User is currently accessing so that I can set some other text etc on the same chart. Is there a way that I can right an if statement based on the label of the expression eg:

IF(ExpressionLabel = "xyz", Do something, Do something else)

Thanks in advance,

Pete Farmer

3 Replies
boorgura
Specialist
Specialist

Yes it is possible, but not directly.

In the chart properties - Enable show title in chart and let it <use first expression label>

You can align it to the right and get your cyclic icon right next to it.

But of course, for this to mean properly - You will just need to have just that one group or at least the group as the first expression.

Let me know if it works.

johnw
Champion III
Champion III

I hande this by creating a cyclic group instead of an expression group, then referencing getcurrentfield(group) in both the expression and anywhere else I need it. Attached is an example.

Not applicable
Author

Hi John

Another amazing example what can be done with QV and your skills! Took me some time to figure out how you added that grouping.

Regards

Jürg