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

Get certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register now

Reply
Lukky123
New Member

Matching specific values to their columns

Hello. I am relatively new to Power BI.
I am working on cleaning the data below and would like the Airline and Onwards Return Flight Time format to be something like this:

Airline Onwards Return Flight Time
IndiGo 14:00-16:05
Spicejet 15:45-17:45
IndiGo 10:50-13:00
IndiGo06:30-09:10
IndiGo12:45-14:20

From this

Initial.PNG

 

Any ideas?

Thanks.

3 REPLIES 3
Mkarwa-123
Resolver II
Resolver II

You can use remove duplicates, if you dont need them.

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

Mkarwa-123
Resolver II
Resolver II

Hi @Lukky123 
You can first split on I on Arline and onward return flight time. 
Once you get all the columns you can unpivot data to get the desired format. 

I just tried that. It produced some duplicates.
This
Initial1.PNG

Instead of this

Airline Onwards Return Flight Time
IndiGo 14:00-16:05
Spicejet 15:45-17:45
IndiGo 10:50-13:00
IndiGo06:30-09:10
IndiGo12:45-14:20

Helpful resources

Announcements
November Carousel

Fabric Community Update - November 2024

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

Live Sessions with Fabric DB

Be one of the first to start using Fabric Databases

Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.

Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early Bird pricing ends December 9th.

Nov PBI Update Carousel

Power BI Monthly Update - November 2024

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