

Specialist II
‎2020-07-29
10:09 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Using CrossTable to get Columns name
Hi,
How can I get this output, please?
Input:
Date | Consumo |
28/07 | 0,62 |
28/07 | 0,31 |
29/07 | 0,70 |
29/07 | 0,72 |
Output:
28/07 | 29/07 |
0.62 | 0.70 |
0.31 | 0.72 |
Thank You
707 Views
1 Solution
Accepted Solutions

Creator II
‎2020-07-29
10:30 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You could try loading your data using Generic LOAD in the Script.
Table 1:
Generic LOAD
Date,
Consumo
From YourDataSource;
696 Views
3 Replies

MVP
‎2020-07-29
10:23 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Try this
Table:
LOAD *,
AutoNumber(RecNo(), Date) as SNo;
LOAD * INLINE [
Date, Consumo
28/07, 0.62
28/07, 0.31
29/07, 0.70
29/07, 0.72
];
FinalTable:
LOAD Distinct SNo
Resident Table;
FOR i = 1 to FieldValueCount('Date')
LET vDate = FieldValue('Date', $(i));
Left Join (FinalTable)
LOAD SNo,
Consumo as [$(vDate)]
Resident Table
Where Date = '$(vDate)';
NEXT
DROP Table Table;

Creator II
‎2020-07-29
10:30 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You could try loading your data using Generic LOAD in the Script.
Table 1:
Generic LOAD
Date,
Consumo
From YourDataSource;
697 Views


Specialist II
‎2020-07-29
12:08 PM
Author
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Just Perfect.
Thank You
668 Views
