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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Trace report

Hi

I have a table that stores trace data like

LevelsTopLevelSegmentResponsGlobIdDestinationSegmentResponseGlobIdSourceSegmentResponseGlobId
0100020011000200110003001
1100020011000300110203001
1100020011000300110303001
2100020011020300120203001
3100020011030300199303001
4100020012020300140203001

So what I need to dispaly would be something like:

0. 10002001

     1. 10003001

          2.10203001

               3.20203001

                    4.40203001

          2. 10303001

               3.99303001

              

I found a post that use Hierarchy, but I do not get it, so I will ask if any can explain or have anyother suggestion to solution.

TRACE:

Load

*

;

select

[Level] AS Levels

,[TopLevelSegmentResponsGlobId]

,[SourceSegmentResponseGlobId]

,[DestinationSegmentResponseGlobId]                                

,[SourceMaterialID]

,[SourceLotID]

,[SourceQuantity]

,[SourceUOM]

,[SourceProcessSegment]               

,[DestinationProcessSegment]

,[DestinationMaterialID]

,[DestinationLotID]

from [Tracking]

;

Hierarchy(ID, ParentID, Name,,Name,TreeView) Load

Levels as ID,

TopLevelSegmentResponsGlobId as ParentID,

SourceSegmentResponseGlobId as Name

Resident TRACE;

Labels (1)
2 Replies
Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

See attached qvw. Is that what you need?


talk is cheap, supply exceeds demand
Anonymous
Not applicable
Author

Hello Gysbert

Thanks for your reply.

That was allmost what I wanted yes.

Tried your solution on some teste data I have.

I tried to create a note showing how I would like it to appear.

Please find below an image that shows this.

What I need is that I also get the top level. This is not to important, I can show this as a single line otherwise.

The main problem is that I need it more organized by levels.

(there is an obvious error in this test data  where one destination routes back to toplevel id on source column. Please disregard that)

treeview_sample1.jpg