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

Check if a value is in any digit of another column

Dear all, good morning.

 

I am trying to check if a value in one column appear in another one. The issue I am currently facing is that the column may contain multiple values and I would need to check these one by one.

 

Below is the situation I am facing:

 

 

I have a table with all customer requests:

 

CustomerRequested ServiceStatus
APick-up*This column should be completed based on the other column
BPick-up*This column should be completed based on the other column
CDelivery*This column should be completed based on the other column

 

And another one with the services completed for each customer

 

ServiceNumServiceTypeRealised for
1Pick-upA,B
2DeliveryC

 

Desired Result:

 

CustomerRequested ServiceStatus
APick-upCompleted
BPick-upCompleted
CDeliveryCompleted

 

How may I achieve this ?

2 REPLIES 2
Anonymous
Not applicable

Hello @davehus , good morning.

 

No, I understood what you did but lets say I have a column with 10 different Customers for the realized column. I would split by delimiter "," and afterwards unpivot the selected columns right?

 

Lets say after 1 month I have the column with 20 customers, it will not pivot all of the 20 columns, since I selected only the previous 10 correct?

davehus
Memorable Member
Memorable Member

Hi @Anonymous , I've based the attached on your example. Please click through the powerquery steps to see how the data is being transformed. Is this what you need?

https://drive.google.com/file/d/1JfF072By-CHOUi3uzk-GMA8nVdNrKeXY/view?usp=sharing

 

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.