Forum Discussion

lpd82's avatar
lpd82
Helper I
4 years ago
Solved

Find unique value in two columns

How do I check for two columns in a single table to see if they match?  I need to create a column labeled "Check" to find ID where type A maches type B.  TIA

 

IDTypeCheck
1ATRUE
2ATRUE
3ATRUE
4ATRUE
5AFALSE
6AFALSE
1BTRUE
2BTRUE
3BTRUE
4BTRUE
  • lpd82 , Try a new column like

     

    new column =
    var _id = [ID]
    var _Ty = [Type]
    var _1 = countx(filter(Table, [ID] = _id && [Type] <> _ty),[ID)
    return
    if(isblank(_1), False(), True())

2 Replies

  • lpd82 , Try a new column like

     

    new column =
    var _id = [ID]
    var _Ty = [Type]
    var _1 = countx(filter(Table, [ID] = _id && [Type] <> _ty),[ID)
    return
    if(isblank(_1), False(), True())