Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik GA: Multivariate Time Series in Qlik Predict: Get Details
cancel
Showing results for 
Search instead for 
Did you mean: 
evansabres
Specialist
Specialist

Calculated Dimension

I am looking to create a calculated dimension with multiple values of the same dimension.

The dimension is 'Opponent' and there are eight values. (Opponent A, Opponent B, Opponent C)

What is the syntax of the dimension?

1 Solution

Accepted Solutions
micheledenardi
Specialist II
Specialist II

In your chart use Valuelist('Opponent A', 'Opponent B', 'Opponent C') as a dimension and if() statement to specify the expressions for each dimension valueImmagine.png

Michele De Nardi
If a post helps to resolve your issue, please accept it as a Solution.

View solution in original post

7 Replies
micheledenardi
Specialist II
Specialist II

Try to use ValueList function:

Valuelist('Opponent A', 'Opponent B', 'Opponent C')

Michele De Nardi
If a post helps to resolve your issue, please accept it as a Solution.
sunny_talwar

8 values? how are they getting into the three Opponents you mentioned (A, B, C)?

evansabres
Specialist
Specialist
Author

That was an example, there are eight opponents

sunny_talwar

Why can't you use opponents as your dimension? Why do you need calculated dimension?

micheledenardi
Specialist II
Specialist II

In your chart use Valuelist('Opponent A', 'Opponent B', 'Opponent C') as a dimension and if() statement to specify the expressions for each dimension valueImmagine.png

Michele De Nardi
If a post helps to resolve your issue, please accept it as a Solution.
evansabres
Specialist
Specialist
Author

There are values in there, which I do not want to have appear in the table.

sunny_talwar

Then you can use an if statement

If(Not Match(opponents, 'opponents9'), opponents)