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

Announcements
Join us to spark ideas for how to put the latest capabilities into action. Register here!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

How to create group Articles for SubTotal

Hi,

I have the fiels follows : Articles - UnderFamily - Family.

Example : CodeArticles(0000A)- CodeUnderFamily(AAAA)- CodeFamily(AAAAB)

I would like to get this results :

Crosstab --SubTotal.png

If I create field like : 'CodeArticles& ' ' &CodeUnderFamily& ' '&CodeFamily do I obtain the result like the picture ?

Thanks for your help.

8 Replies
RSvebeck
Specialist
Specialist

Hi.Perhaps this will help you. See attached. //Robert

Svebeck Consulting AB
Not applicable
Author

Thanks a lot . It try like that and it works very well !!

Not applicable
Author

Could I have an example with Switch case.

Example:

IF AAAA => GROUP 1

IF BBBB => GROUP 2

IF CCCC => GROUP 3

IF DDDD => GROUP 4

Thanks.

RSvebeck
Specialist
Specialist

Hi.

What is AAAA, BBBB, CCCC and DDDD?

Different Underfamilies?

//Robert

Svebeck Consulting AB
Not applicable
Author

Sorry,

AAAA, BBBB, CCCC and DDDD are the underFamilies.

Like:

CASE UnderFamilies

when 'AAAA' then 'GROUP1'

when 'BBBB' then 'GROUP1'

when 'CCCC' then 'GROUP2'

when 'DDDD' then 'GROUP2'

End

Thanks..

RSvebeck
Specialist
Specialist

Do you mean like this?

Svebeck Consulting AB
Not applicable
Author

Yes.. thanks.

It was just to have an example with switch case...

RSvebeck
Specialist
Specialist

Okay, if your questions now has been answered, please close the discussion as "Solved" so if someone in the future has a similar question they  will know that this thread was solved. //brg Robert

Svebeck Consulting AB