Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Récupérer la valeur d'une dimension dans un tableau

Hi everybody,

I would like to know if there is a way to find the value of a dimension in a table. I'm used to do it with column(x) for expressions but this function doesn't work with dimensions...

Someone knows a way to find the value of a dimension?

Thank you for your help

Augutsin

1 Solution

Accepted Solutions
alexandros17
Partner - Champion III
Partner - Champion III

I think that if you write

Sum({1} Turnover) for the three expression you will get the same result because Sum is performed for each dimension so is made for combination France-TOP, France-BOT and so on.

Let me know.

View solution in original post

5 Replies
alexandros17
Partner - Champion III
Partner - Champion III

What do you mean with value of dimension? can you detail more?

Not applicable
Author

This is an exemple of what i want

I want to replace "TOP", "BOT", "Other" by something that can automatically find the value in departement.

DimensionDimensionExpressionExpression
CountryDepartmentTurnover CountryTurnover World
FranceTOP2500sum({1<Departement = {TOP}>} Turnover)
FranceBOT5000sum({1<Departement = {BOT}>} Turnover)
FranceOthers7500sum({1<Departement = {Other}>} Turnover)

Am I clear?

alexandros17
Partner - Champion III
Partner - Champion III

I think that if you write

Sum({1} Turnover) for the three expression you will get the same result because Sum is performed for each dimension so is made for combination France-TOP, France-BOT and so on.

Let me know.

Not applicable
Author

As Allesandro said, you don't need to specify the value of the column Department as you have the dimension but you need to specifiy you don't to take in account the country so you might do something like

sum({1<Country= {*}>} Turnover)

so the sum will operate without coutnry but slicing it by department.

Not applicable
Author

You are right, it was that silmple. Thank you both of you