Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

Searching value in one column in another column

Hi Experts,

 

I need to search for a value of column "Assigned ID" in "Approver ID" respective of their "Requisition ID" eg

 

Requisition IDAssigned IDApprover ID
111MJ2MK1
111MJ2JK2
111MJ2MJ2
111MJ2SK4
222HJ1MJ2
222HJ1SK4
222HJ1UH6
222HJ1HJ1

 

I want my results to look like:

 

Requisition IDAssigned IDApprover IDAudit
111MJ2MJ2Found
222HJ1 Not Found

 

1 ACCEPTED SOLUTION
MatejZukovic
Resolver I
Resolver I

Hi @Anonymous ,

 

you may consider creating 2 columns :

1. Flag comparing Assigned ID & Approver ID. 

Audit_Flag = 'Table'[Assigned ID] = 'Table'[Approver ID]

2. All Requisitions IDs which contain at least 1 TRUE flag from previous column will be marked as TRUE otherwise FALSE

Audit_Result = CALCULATE(CONTAINS('Table','Table'[Audit_Flag],TRUE()),ALLEXCEPT('Table', 'Table'[Requisition ID]))

Final table will look like this:

Capture.JPG

Let us know if it helped!

Matej

 

 

View solution in original post

4 REPLIES 4
MatejZukovic
Resolver I
Resolver I

Hi @Anonymous ,

 

you may consider creating 2 columns :

1. Flag comparing Assigned ID & Approver ID. 

Audit_Flag = 'Table'[Assigned ID] = 'Table'[Approver ID]

2. All Requisitions IDs which contain at least 1 TRUE flag from previous column will be marked as TRUE otherwise FALSE

Audit_Result = CALCULATE(CONTAINS('Table','Table'[Audit_Flag],TRUE()),ALLEXCEPT('Table', 'Table'[Requisition ID]))

Final table will look like this:

Capture.JPG

Let us know if it helped!

Matej

 

 

Anonymous
Not applicable

@MatejZukovic 

Thanks for the solution and the final table loooked great. I require one more help on this, I need a table view on dashboard with one line each of requisition ID with its audit column. Just like the below table:

Requisition IDAssigned IDApprover IDAudit
111MJ2MJ2Found
222HJ1 Not Found

Hi @Anonymous ,

 

you can create one more column :

Capture.JPG

 

Then create a table in your report bringing in Requisition ID, Assigned To, and the column created above. Unselect "Other Matches" in the table through a filter.

 

 

Anonymous
Not applicable

Thanks A lot.

 

That is what i was looking for.

 

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.