Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
agni_gold
Specialist III
Specialist III

Do not require grouping in Pivot table

Hi Friends,

I have a situation, I  have one pivot table with multiple dimensions and 1 expression, and I have also done pivoting in that table, but the requirement is,

we want to pivot but not a grouping of dimensions values they should repeat like a straight table.

9 Replies
vinieme12
Champion III
Champion III

You just need to add the prevailing dimension to the next one

for example

Dim1

Dim2 & chr(10) & Dim1

Dim3 & chr(10) & Dim2

Dim4 & chr(10) & Dim3


and so on....

Vineeth Pujari
If a post helps to resolve your issue, please accept it as a Solution.
agni_gold
Specialist III
Specialist III
Author

it will look like straight table ?

vinieme12
Champion III
Champion III

post a sample

Vineeth Pujari
If a post helps to resolve your issue, please accept it as a Solution.
vinieme12
Champion III
Champion III

correction it has to be the other way round

You just need to add the prevailing dimension to the next one

for example

Dim1 & Chr(10) & Dim2

Dim2 & chr(10) & Dim3

Dim3 & chr(10) & Dim4

Dim4 & Chr(10) & Dim5

Dim5


and so on....

Vineeth Pujari
If a post helps to resolve your issue, please accept it as a Solution.
agni_gold
Specialist III
Specialist III
Author

First Column values should repeat.

tresesco
MVP
MVP

Try creating a Key field in the script like:

Autonumber(Country&State) as Key

and then a calculated dimension :

=Dual(Country, Key)

Capture.PNG

agni_gold
Specialist III
Specialist III
Author

and if i have more than 2 dimensions in table then i need to create individual keys for each dimensions ?

vinieme12
Champion III
Champion III

No just create create a composite key with all possible fields that you will be using in the dimension

Autonumbrr (Dim1 &...........)

Vineeth Pujari
If a post helps to resolve your issue, please accept it as a Solution.
tresesco
MVP
MVP

You have to create/find a numeric key for all dimensions that you want ungroup in the chart. And you have to careful about using this key combination since they composite key order would decide your aggregation as well.