Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
peschu123
Partner - Creator III
Partner - Creator III

How to create sub groups?

Hi,

i have the following table:

OrderSub OrderStartEndeDescription
123456020009.04.201309.04.2013Freigabe 1
123456025008.05.201308.05.2013Lagerbezug
123456030108.05.201308.05.2013something
123456040013.05.201313.05.2013something
123456195028.06.201328.06.2013Freigabe 2
123456195102.07.201302.07.2013something
123456200004.07.201304.07.2013something
123456210028.06.201328.06.2013something
123456740018.07.201322.07.2013something
123456985022.07.201322.07.2013Kontrolle
123456985126.07.201326.07.2013Report

And at the end I want it to look like this:

OrderSub OrderStartEndeDescriptionStatus
123456020009.04.201309.04.2013Freigabe 11
123456025008.05.201308.05.2013Lagerbezug2
123456030108.05.201308.05.2013something2
123456040013.05.201313.05.2013something2
123456195028.06.201328.06.2013Freigabe 23
123456195102.07.201302.07.2013something3
123456200004.07.201304.07.2013something3
123456210028.06.201328.06.2013something3
123456740018.07.201322.07.2013something3
123456985022.07.201322.07.2013Kontrolle4
123456985126.07.201326.07.2013Report5

Text in bold shows the point where the status changes.

I would like to precalculate this field in my script.

My problem is that I can just use the "Description" field to determine the status, all other fields change from one order to another. And further I need to flag the fields in between too.

At the moment I use Set Expression like this in my table to calculate the Days for the specific status:

=only({<Description={'Lagerbezug'}>}[Start]) - only({<Description={'Freigabe 1'}>}[Start]) & 'Days'

And because this would be too easy, sometimes a relevant description is missing.

For example in this case the description "Freigabe 2" could be missing. I think the best workaround would be to use Status 2 until it changes to "Kontrolle" (Status 4).

I appreciate any help at this topic.

Thank you in advance, Peter.

1 Solution

Accepted Solutions
Gysbert_Wassenaar

See attached example


talk is cheap, supply exceeds demand

View solution in original post

3 Replies
Gysbert_Wassenaar

See attached example


talk is cheap, supply exceeds demand
peschu123
Partner - Creator III
Partner - Creator III
Author

Wow Gysbert,

as I can see it's exactly what I need. I assume with wildmatch it works the same way?

Thank you very much.

EDIT:

I realized one little point. The selection must be like this. I tried to edit the formula, but I just don't get it to be sorted like this:

12345620009.04.201309.04.2013Freigabe 11
12345625008.05.201308.05.2013Lagerbezug2
12345630108.05.201308.05.2013something3
12345640013.05.201313.05.2013something3
123456195028.06.201328.06.2013Freigabe 23
123456195102.07.201302.07.2013something4
123456200004.07.201304.07.2013something4
123456210028.06.201328.06.2013something4
123456740018.07.201322.07.2013something4
123456985022.07.201322.07.2013Kontrolle4
123456985126.07.201326.07.2013Report5
Gysbert_Wassenaar

See attached qvw.


talk is cheap, supply exceeds demand