Forum Discussion
Collecting data from multiple lines to one line
Hi colleagues,
I would like to have your support about the topic below:
I have one table (summarized table) including multiple lines for each "Company" with different audit status.
Is it possible to combine all these line, and resume the audit status in one line for each supplier ?
Target is to move from Table 1 to Table 2:
| Company | Audit 1 | Audit 2 | Audit 3 | Audit 4 |
| X | valid | |||
| X | planned | |||
| X | ||||
| X | expired | |||
| Y | expired | |||
| Y | planned | |||
| Y | planned | |||
| Y | valid | |||
| Z | expired | |||
| Z | planned | |||
| Z | valid | |||
| Z | valid |
Thanks for your support !
Best regards.
5 Replies
- v-henryk-mstf
Community Support
Hi Anonymous ,
I have done tests and think the solution provided by AlexisOlson works, refer to the following.
If the problem is still not resolved, please point it out. Looking forward to your reply.
Best Regards,
HenryIf this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
- amitchandak
Super User
Anonymous , in power query, create a table using group by and use min/max for all columns other than company
- AnonymousNot applicable
amitchandak First, thanks for your reply.
As my table is a result of "summarize" function, I can't use the "group by" ==> when i open power query my table isn't there.
Is there any other solution please ?
- AlexisOlson
Super User
- sanalytics
Super User
Hi Anonymous
You can also acheive your output through Power Query..Attached is the screenshots and Power Bi file..
have a lookRegards
sanalytics