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
krishnachaitany
Frequent Visitor

convert a Column ( with has multiple values separated by commas into a list.

Hi Everyone,

                    I am working on Personal Project on Power BI on the Dataset used for 'Highest Hollywood Grossing Movies' and need ideas/assistance on this following Query in Power Query or DAX . Can anyone provide your valuable ideas on this.

 

QUERY:- Need to convert a Column (Genre Attribute) with has multiple values separated by commas into a list. So, that I can make a unique Dimension Table , use it as a slicer and also for also making data model by creating a Star Schema.

 

Example for Reference:-Movie " Titanic (1997) " in the dataset falls under multiple Genres ( Drama, Romance ) which are stored in a single Column 'Genre'.I am looking for solution where it can split this into 2 rows containing information alike

Titanic (1997) - Drama.

Titanic (1997)-Romance.

Please verify the Image for clear understanding of Dataset.

Power BI Community.PNG

1 ACCEPTED SOLUTION
Greg_Deckler
Super User
Super User

@krishnachaitany Use Text.Split


@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

View solution in original post

2 REPLIES 2
krishnachaitany
Frequent Visitor

Thanks 😊@Greg_Deckler .It is working and my met my requirement.Please find the screenshots for reference.

PBI Community Resolved 1.pngPBI Community Resolved 2.png.png

Greg_Deckler
Super User
Super User

@krishnachaitany Use Text.Split


@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

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.