20
Views
2
Comments
Need to add data from rows to column
Question

Hi,

I have data in excel like below

                       

1
2
3
4
5
6
7
8
9
10
12
13

make data in below 

12345678
910111213




2025-04-30 18-21-22
Senthil Nathan A

Hi @Vivek Pandile,

Try the below method

  • Create an Entity: First, create an entity (e.g., NumberData) with an attribute like Number to store the data.

  • Create a Screen/Action: In your screen or action, create a local variable of type List of NumberData to hold the rows you want to transpose.

  • Fetch the Data: Use an aggregate to fetch all rows from NumberData into a list.

  • Transpose the Data: Use a ForEach widget to loop over the list and group every N items (e.g., 5 items per group). You can create a new list for each group (row) and store these lists in a separate variable.

  • Display the Data: On the screen, loop through the newly created lists (columns) and display them as needed, like in an HTML table.

Hope this works.

Thanks,

Senthil


2021-04-09 11-42-43
assif_tiger
 
MVP

Dear @Vivek Pandile 

Please enahnce the question so that folks here can answer :)
1- Attach the source excel  or share a snap of data from it
2- You want data to be organized whithin an output excel or show on UI ?


Ref for future:
https://www.outsystems.com/forums/discussion/15571/how-do-i-ask-a-good-question/

Good Luck

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.