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
space83
Helper IV
Helper IV

make 6 row become 1 row

Hi all,

 

This 2 table below actually come from same table in model.

How can I show the 2nd table (workorder) in table 1 as new column in 1 row and separate by comma?

 

as example it will be something like below:

 

Count of Workorder | Workorder

6 | 2021025087, 2021025098, 2022002469, 2022005246, 2022007304, 2022007706

 display new column.jpg

1 ACCEPTED SOLUTION

Great. I modified your function as below and got the expected results.

 

List of WO = calculate(CONCATENATEX('Planner Combine','Planner Combine'[Workorder],", "),TREATAS(SUMMARIZE('Planner Combine','Planner Combine'[Weekly Commitment]),'Planner Combine'[Weekly Commitment]))

 

list-of-wo.jpg

has any way i want to exclude total of 'List of WO' from the table? 

 

 

View solution in original post

6 REPLIES 6
JYA
Frequent Visitor

If I reproduce your tables with Article Nr as the key, you should get : 

Workorder =
CALCULATE(CONCATENATEX(Workorder,Workorder[Workorder],", "),TREATAS(SUMMARIZE('Table Machines','Table Machines'[Article nr.]),Workorder[Article nr.]))
 Table Machines : 
JYA_0-1652863930227.png

Workorder :

JYA_1-1652863982961.png

 

 

Great. I modified your function as below and got the expected results.

 

List of WO = calculate(CONCATENATEX('Planner Combine','Planner Combine'[Workorder],", "),TREATAS(SUMMARIZE('Planner Combine','Planner Combine'[Weekly Commitment]),'Planner Combine'[Weekly Commitment]))

 

list-of-wo.jpg

has any way i want to exclude total of 'List of WO' from the table? 

 

 

hi @JYA ,

 

Seems it still not produce an expected result.

actually my table is single table only.

model.jpg

JYA
Frequent Visitor

Ok, 

I have created the table with only Article nr. and Workorder :

Planner Combine = DATATABLE("Article nr.",STRING,"Workorder",STRING,{{"MY10290.1","2021025087"},{"MY10290.1","2021025098"},{"MY10290.1","2021025468"},{"MY10290.1","2021025246"},{"MY10290.1","2021025304"},{"MY10290.1","2021025706"},{"MY10950.1","202102000"},{"MY10950.1","2021025001"},{"MY10950.1","2021025002"}})
 
and using 
Workorder list =
CONCATENATEX('Planner Combine','Planner Combine'[Workorder],", ")
 
Create table like this 
JYA_1-1652865439193.png

Count of Workorder is distinctcount

I get this : 
JYA_0-1652865415988.png

 

space83
Helper IV
Helper IV

Hi @JYA,

actually the data was group to 3 column in red crop below.

group.jpg

i try use u formula sir but seems its not work.

 

I  think is better if i able attach my pbix file but seems this forum dont have that features.

 

 

JYA
Frequent Visitor

Hi, 

 

you can add a measure of this kind : 

Workorder full = CONTATENATEX('WorkOrder','Workorder'[Workorder], ", ")
Of course you need to filter on same key but you have not provided it in your message. 

 

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.