Skip to main content
Announcements
NEW: Seamless Public Data Sharing with Qlik's New Anonymous Access Capability: TELL ME MORE!
cancel
Showing results for 
Search instead for 
Did you mean: 
agni_gold
Specialist III
Specialist III

Need help for grouping data.

I am attaching the data in excel , and i want result  like attached screenshot.

I have tried many ways but not able to do this.

Please help

29 Replies
agni_gold
Specialist III
Specialist III
Author

But how can i implement , i dont know

Not applicable

Hello Agnivesh,

I have looked at the  the data file you attached. It does not reflect the country breakdown structure. Any how, base don the file you posted, I built a  hierarchy. Please have a look and I hope it helps and apologies if it doesnt. If your file was structured differently, you could use the transformation tool in qlikview which will allow you to easily build the hierarchy. You might need to modify the query in case of ull values to get the correct node.

Anonymous
Not applicable

Does this give you food for thought ?

agni_gold
Specialist III
Specialist III
Author

Sorry friend i have only personal edition , so i am not able to open this file , but yes it will give me food can you please share the qvs file of this . So that i can see .

Thanks

Anonymous
Not applicable

Data:

load

  1 as Count ,

  if ( not isnull( [Child Description4] ) ,

  [Parent Description] & '/' & [Child Description1] & '/' & [Child Description2] & '/' & [Child Description3] & '/' & [Child Description4] ,

  if ( not isnull( [Child Description3] ) ,

  [Parent Description] & '/' & [Child Description1] & '/' & [Child Description2] & '/' & [Child Description3] ,

  if ( not isnull( [Child Description2] ) ,

  [Parent Description] & '/' & [Child Description1] & '/' & [Child Description2]  ,

  if ( not isnull( [Child Description1] ) ,

  [Parent Description] & '/' & [Child Description1] ,

  if ( not isnull( [Parent Description] ) ,

  [Parent Description]  ) ) ) ) )

  as Tree ,

  *

;

LOAD [HFM Account Parent],

    [Parent Description],

    Child1,

    [Child Description1],

    Child2,

    [Child Description2],

    Child3,

    [Child Description3],

    Child4,

    [Child Description4]

FROM

(ooxml, embedded labels, table is Hirerchy);



Then you can make a List Box Object on Tree and on the General tab <tick> Show as Tree View.

agni_gold
Specialist III
Specialist III
Author

Thanks friend , but this will not work on pivot table or any table type object . This can only be used as individual field. Am i right

agni_gold
Specialist III
Specialist III
Author

V.JPG

It comes like this

But i want Tree column should be like this

V1.JPG

When i drill down it should be in Tree column and expand as per hierarchy.

Anonymous
Not applicable

Have you tried creating a List Box Object on field Tree and then on the General tab <tick> Show as Tree View.  It should look just like your example of what you are after.

agni_gold
Specialist III
Specialist III
Author

Yes i have tried , but what exactly i want is , I want to make the Pivot table in which Hierarchy should be in single column . like this

Example.JPG