Forum Discussion

dw700d's avatar
dw700d
Icon for Post Patron rankPost Patron
4 years ago
Solved

Identifying a value that contains a specific value in another column

Good day, I have a purchase order column with thousands of purchase orders. each purchase order has  various accounts associated with it. I would like a measure that allows me to identify any purchase order that contains Account ABC.  My objective is to be able to view all the accounts affiliated with any purchase order that has an account ABC.  For example the measure would return "Purchase No" 1 because it contains ABC but it would also show me Account WES as well.

 

Purchase No

Account
1ABC
1WES
2ABC
2DFG
3LOM
3NED
4ABC
4YUU
5LOE
5NSA
6ERR
6FRR
  • Anonymous's avatar
    Anonymous
    4 years ago

    Hi dw700d ,

    Please have a try.

    Create a measure.

    Measure = 
    var connect = CONCATENATEX(FILTER(ALL('Table'),'Table'[Purchase No]=SELECTEDVALUE('Table'[Purchase No])),'Table'[Account]&" ")
    VAR RESULT = IF(SELECTEDVALUE('Table'[Account])="ABC",connect,BLANK())
    return RESULT

    Best Regards

    Community Support Team _ Polly

     

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

5 Replies