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: 
rkhadraoui1016
Contributor II
Contributor II

display multiple dimensions in one dimension based on ifs

Hi All,

I would like to have some help in what I am trying to achieve here.

I have a data table like so:

Fields
Export
Patener
Group
RevenueGroup
Type
Other
SF
BSF
MSF
Client
Group Client
Excl

 

and I would like to have my data to be displayed in a pivot table like so:

DimsDimsValueFields
1PartnersExport
2PartnersPatener
3PartnersGroup
4RevenueGroupRevenueGroup
5TypeType
6AgenciesOther
7AgenciesSF
8AgenciesBSF
9AgenciesMSF
10ClientsClient
11ClientsGroup Client
12TitlesExcl

 

but the Dims will be hidden or not added to the table.

I can do it with an if statement in the dimension but the table it very slow so I am thinking of doing it in the script but I can't figure out the best approach do it.

the if statement will be like so:

if(Dims=1,Export,if(Dims=2,Partner, and so on

I used an inline table to do it this but am not sure if there is a different way of achieving this in the script.

Kind Regards,

Ray

2 Replies
rkhadraoui1016
Contributor II
Contributor II
Author

Forgot to add what it should look like with hidden Dims.

DimsValueFields
AgenciesBSF
 MSF
 Other
 SF
ClientsClient
 Group Client
PartnersExport
 Group
 Patener
RevenueGroupRevenueGroup
TitlesExcl
TypeType
Brett_Bleess
Former Employee
Former Employee

No idea if this is on the right track or not, but might be:

https://community.qlik.com/t5/Qlik-Design-Blog/Unbalanced-n-level-hierarchies/ba-p/1474325

The base URL for the Design Blog area is:

https://community.qlik.com/t5/Qlik-Design-Blog/bg-p/qlik-design-blog

That is a great place to search for how-to and best practice related topics, sorry, I am not quite sure exactly what you want, but hopefully this gets you on the right track, and my post will kick things back up, but I cannot say if anyone else will shout or not.

Regards,
Brett

To help users find verified answers, please do not forget to use the "Accept as Solution" button on any post(s) that helped you resolve your problem or question.
I now work a compressed schedule, Tuesday, Wednesday and Thursday, so those will be the days I will reply to any follow-up posts.