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

Announcements
Join us in NYC Sept 4th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
clarachac
Contributor III
Contributor III

Pivot Table : personalised dimension

Hello,

I have a pivot table with a master item hierarchical dimension (countries>cities) and different measures : 

clarachac_0-1732275641766.png


I would like to create a dimension named 'Mondial' which doesn't take into consideration the filters and the measures = total of the other dimensions (= sum of countries)

So if I filter on 'Espagne' for example, I want to have a pivot table with the column 'Mondial' for which the measures haven't changed and a column 'Espagne' for which the measures correspond to the country chosen.

Labels (5)
1 Solution

Accepted Solutions
pedrohenriqueperna
Creator III
Creator III

Hi,

You could probably add a 'Mondial' value to the existing dimension in your loader. There you could already set the values as the sum for all countries, or you could leave it blank and set in the expression something like:

If(yourDimension = 'Mondial', Sum({1} Total value)

The {1} will ignore every filter you choose. If you wish to respect some of the filters, then you can add them as exceptions like:

If(yourDimension = 'Mondial', Sum({1<year =$:: year, month =$:: month>})

This would ignore every filter, except for year and month.

View solution in original post

3 Replies
gomeri
Partner - Creator
Partner - Creator

Hi @clarachac,

in measures, in set expression of measure, use as identifier "1":

For ex. instead use this "=SUM(MEASURE1)" you can use "=SUM({1}MEASURE1)". 

It change set identifier of your set expression and when you take a selection of a country, this measure remain unvariable. 

Hope i help you with your question.

gomeri_0-1732286924065.png

 

Thanks

Giovanni O. D.
sbaro_bd
Creator III
Creator III

Hi @clarachac ,

@gomeri provide a good solution but the measure "remain unvariable" for ALL filters in your application. If you want a result with only disconnection from countries and cities, try someting like this : 

SUM({<Countries=, Cities=>} TOTAL MEASURE1)

Regards.

pedrohenriqueperna
Creator III
Creator III

Hi,

You could probably add a 'Mondial' value to the existing dimension in your loader. There you could already set the values as the sum for all countries, or you could leave it blank and set in the expression something like:

If(yourDimension = 'Mondial', Sum({1} Total value)

The {1} will ignore every filter you choose. If you wish to respect some of the filters, then you can add them as exceptions like:

If(yourDimension = 'Mondial', Sum({1<year =$:: year, month =$:: month>})

This would ignore every filter, except for year and month.