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

The Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.

Reply
kxj54590
Helper II
Helper II

Help needed on Complex Scenario

Hello Community Group,

 

I have recently came across a scenario where in the input file given link below has a table visual with columns Member & list of details. I wanted to achieve, the list of details field to be splitted across each column because the list of details field in the input file is grouped & concatenate for a member where i wanted to break it down into different columns as shown in the output below. How can we resolve this problem ? For refernce, i have attached the desired output of the screenshot as well. 

Input: 

https://ucmo0-my.sharepoint.com/:u:/g/personal/kxj54590_ucmo_edu/EfAziaQEZRVGpiUvWZERA2QBrAjnadx1J12...

 

@parry2k,  @Amin  , @Greg @amitchandak @pade @Paddy 

 

Output:

 

kxj54590_1-1621149726170.png

 

Please do the needful.

 

Thanks

Jay

 

1 ACCEPTED SOLUTION
MFelix
Super User
Super User

Hi @kxj54590 ,

 

You can do this on the query editor and this will work has a single step using the split columns by delimiter:

MFelix_0-1621262236137.png

Or you can do it using DAX to do columns you need to add the following syntax:

Column:

Test Column 1 = PATHITEM(SUBSTITUTE(Sheet1[List of details], ", ", "|"), 1)

Test Column 2 = PATHITEM(SUBSTITUTE(Sheet1[List of details], ", ", "|"), 2)

Test Column 3 = PATHITEM(SUBSTITUTE(Sheet1[List of details], ", ", "|"), 3)

Test Column 4 = PATHITEM(SUBSTITUTE(Sheet1[List of details], ", ", "|"), 4)

 

Measures:

Test Measure 1 = PATHITEM(SUBSTITUTE(SELECTEDVALUE(Sheet1[List of details]), ", ", "|"), 1)

Test Measure 2 = PATHITEM(SUBSTITUTE(SELECTEDVALUE(Sheet1[List of details]), ", ", "|"), 2)

Test Measure 3 = PATHITEM(SUBSTITUTE(SELECTEDVALUE(Sheet1[List of details]), ", ", "|"), 3)

Test Measure 4 = PATHITEM(SUBSTITUTE(SELECTEDVALUE(Sheet1[List of details]), ", ", "|"), 4)

 

Result in attach PBIX.

 

 


Regards

Miguel Félix


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

Proud to be a Super User!

Check out my blog: Power BI em Português



View solution in original post

5 REPLIES 5
MFelix
Super User
Super User

Hi @kxj54590 ,

 

You can do this on the query editor and this will work has a single step using the split columns by delimiter:

MFelix_0-1621262236137.png

Or you can do it using DAX to do columns you need to add the following syntax:

Column:

Test Column 1 = PATHITEM(SUBSTITUTE(Sheet1[List of details], ", ", "|"), 1)

Test Column 2 = PATHITEM(SUBSTITUTE(Sheet1[List of details], ", ", "|"), 2)

Test Column 3 = PATHITEM(SUBSTITUTE(Sheet1[List of details], ", ", "|"), 3)

Test Column 4 = PATHITEM(SUBSTITUTE(Sheet1[List of details], ", ", "|"), 4)

 

Measures:

Test Measure 1 = PATHITEM(SUBSTITUTE(SELECTEDVALUE(Sheet1[List of details]), ", ", "|"), 1)

Test Measure 2 = PATHITEM(SUBSTITUTE(SELECTEDVALUE(Sheet1[List of details]), ", ", "|"), 2)

Test Measure 3 = PATHITEM(SUBSTITUTE(SELECTEDVALUE(Sheet1[List of details]), ", ", "|"), 3)

Test Measure 4 = PATHITEM(SUBSTITUTE(SELECTEDVALUE(Sheet1[List of details]), ", ", "|"), 4)

 

Result in attach PBIX.

 

 


Regards

Miguel Félix


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

Proud to be a Super User!

Check out my blog: Power BI em Português



@MFelixThis would definitely work, but in case of import option, my apologize didnt mention the method of connection. However, in my case it is direct query mode (SSAS model). How this scenario can be achieved using this type of connection ?

 

You need to use the measures for achieving the result. 


Regards

Miguel Félix


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

Proud to be a Super User!

Check out my blog: Power BI em Português



@MFelix With the above given measures? Sure, will give it a try and let you know. Thank you for taking time. 

Correct


Regards

Miguel Félix


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

Proud to be a Super User!

Check out my blog: Power BI em Português



Helpful resources

Announcements
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!

FebPBI_Carousel

Power BI Monthly Update - February 2025

Check out the February 2025 Power BI update to learn about new features.

Feb2025 NL Carousel

Fabric Community Update - February 2025

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

Top Kudoed Authors