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

Announcements
Qlik Connect 2026! Turn data into bold moves, April 13 -15: Learn More!
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Dimension based on multiple criteria / values in other dimensions

Hello everybody,

I want to create a New dimension called  Freight TYPE  with two values : Dedicated and MIXED.

Dedicated freight  is any freight with only one type of Customer Group under Section TYPE
“ OUT” 
, so that: Freight 1: would be classified as mixed and Freight 2 as dedicated.

The end result would be:

Customer
Group              Freight.TYPE        Cost

A                     Mixed                       300    

A                   Dedicated                   200

Data looks somewhat like below:

Freight #             Section.Type                     Customer Group1            COST

1                                             OUT                                      A                     50

1 OUT B 100

1                                             BH                                         X                     150

2                                             OUT                                      A                      100   

2                                             BH                                         Z                      100      

I was  trying different ways in calculated dimension combaining  AGGR, TOTAL, Count(Distinct) and iF

But none of it worked.

Big thanks in advance to anyone who can solve it !

11 Replies
Not applicable
Author

look on v1

I changed a little your oryginal field names. This is why sharing sample is the best option.

let me know if it helps.

pozdrawiam serdecznie

Darek

Anonymous
Not applicable
Author

Sudeep,

Big Thanks  for your help !!!

Your solution  works great