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: 
karan_kn
Creator II
Creator II

Table with Yes or No based on Date

Please help me to create table with Yes or No. Yes and highlighted with No

Capture.JPG

T1:

LOAD * INLINE [

    ID, Date

    1, 2015

    1, 2016

    1, 2018

    2, 2017

    2, 2018

    3, 2015

    3, 2016

    3, 2017

    3, 2018

    4, 2016

];

1 Solution

Accepted Solutions
Frank_Hartmann
Master II
Master II

Pivot Table:

Dimension1 = ID

Dimension2 = Date

Expression = if(concat(Date,',',Date)<>'','Yes','No')

Then drag Date Dimension to the upper right until you see a blue horizontal line

Output:

Unbenannt.png

View solution in original post

6 Replies
Frank_Hartmann
Master II
Master II

Pivot Table:

Dimension1 = ID

Dimension2 = Date

Expression = if(concat(Date,',',Date)<>'','Yes','No')

Then drag Date Dimension to the upper right until you see a blue horizontal line

Output:

Unbenannt.png

m_woolf
Master II
Master II

See the attached qvw.

MarcoWedel

another possible pivot table expression:

If(Count(ID),'Yes','No')

hope this helps

regards

Marco

vishsaggi
Champion III
Champion III

Another solution may be like Add pivot with

Dim:

Id

Date

Expr:

= If(Count(ID) = 1, 'Yes', 'No')

Capture.PNG

vishsaggi
Champion III
Champion III

Haha. Almost sneaked your thought process. 😉

MarcoWedel

indeed