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
Pricey79
Helper V
Helper V

Help with an IF (I think) statement please

Hello, I was hoping someone could help me please. 

I have a column called ID . Then there is a column (Column 1) with names that have three letters in front of them then a dash before the name starts.

Then there is a column with just names (Column 2)

I have merged these 2 columns together now called Column 3.

I need the ID column to show the ID of both these columns, but at the moment its only showing the one with just names (Column2)

 

Is there something I can write in Power Query or as a calculated table in data view that says something like, if Column 3 shows names then show this in ID column, and if column 3 shows names with three letters in front, then show that one in the ID column?

 

I hope that makes sense?

 

Thank you for any help

1 ACCEPTED SOLUTION

@Pricey79 

why not split column 1 in PQ?

1.PNG2.PNG

and you just merge column 1.1 and column2





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




View solution in original post

5 REPLIES 5
ryan_mayu
Super User
Super User

could you pls provide the sample data and expected output?





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




@ryan_mayu Thank you

Does this help?

Pricey79_2-1676452528896.png

 

 

 

@Pricey79 

why not split column 1 in PQ?

1.PNG2.PNG

and you just merge column 1.1 and column2





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Thanks very much @ryan_mayu 

you are welcome





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




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.