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

Announcements
Discover how organizations are unlocking new revenue streams: Watch here
cancel
Showing results for 
Search instead for 
Did you mean: 
mhamurcuoglu
Contributor III
Contributor III

Conditional Expression in Pivot table

Hi everybody

I have question that I hope you can help with

Below you can find an example of what I need .

I need the code for command  " İf there is two different type for the same id use type "Yes" and "if there is only one type written use the written type"

Example:

ID           Type      Weight     Data              Weight*Data

---           ------      ---------    ---------       ------------------

1             No            120           1                       120

1             Yes           120           5                        610

2            No            100            2.1                   210

3             No            80             3.4                     272

4            No             30              5                        150 

4             Yes           30              2.7                    81

 

Expected result :

ID           Type      Weight     Data              Weight*Data

---           ------      ---------    ---------       ------------------

1             Yes           120           5                        610

2            No            100            2.1                   210

3             No            80             3.4                     272

4             Yes           30              2.7                    81

Thanks 

 

1 Solution

Accepted Solutions
Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

See attached qvw


talk is cheap, supply exceeds demand

View solution in original post

2 Replies
Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

See attached qvw


talk is cheap, supply exceeds demand
mhamurcuoglu
Contributor III
Contributor III
Author