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

Announcements
Qlik Connect 2026 Agenda Now Available: Explore Sessions
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

how to solve range Problem

Hi All,

Can anyone help me on below issue?

Lets say I have data like this

Part             Critical

A                    High

B                    Medium

A                     Medium

C                     Low

A                      Low

C                      High

B                     High

D                      High

D                      High

now i should have a condition such that if all the criticals of particular part is high then it should show High , if the part is having high and medium then it should show medium , if the part has all 3 criticals then it should show Low .

So O/P should be

Part             Critical

A                   Low

B                   Medium

C                   Low

D                    High

BR

1 Solution

Accepted Solutions
tresesco
MVP
MVP

Straight table:

Dim: Part

Exp: =If(Index(Concat(Distinct Critical, ','), 'Low'), 'Low', If(

          Index(Concat(Distinct Critical, ','), 'Medium'), 'Medium', 'High'))

View solution in original post

3 Replies
anbu1984
Master III
Master III

Load Part,If(Critical Like '*Low*','Low',If(Critical Like '*Medium*','Medium','High'));

Load Part,Concat(DISTINCT Critical) As Critical Group by Part;

Load * Inline [

Part,Critical

A,High

B,Medium

A,Medium

C,Low

A,Low

C,High

B,High

D,High

D,High ];

tresesco
MVP
MVP

Straight table:

Dim: Part

Exp: =If(Index(Concat(Distinct Critical, ','), 'Low'), 'Low', If(

          Index(Concat(Distinct Critical, ','), 'Medium'), 'Medium', 'High'))

Not applicable
Author

Thanks a Lot Tresesco..Works perfect