Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi Qv,
can we concatinate below two tables ,one table have sum of integer values another table value have string.
table1:
Dim1 | PRIOR WEEK Data | PRIOR MONTH DATA |
---|---|---|
101 | 25 | 35 |
102 | 50 | 68 |
103 | 12 | 26 |
104 | 35 | 45 |
table2:
Dim2 | PRIOR WEEK Data | PRIOR MONTH DATA |
---|---|---|
TIMELINE | WK17 | WK13-WK17 |
output look like this.
DIM1 | PRIOR WEEK DATA | PRIORMONTH DATA |
---|---|---|
TIMELINE | WK17 | WK13-WK17 |
101 | 25 | 35 |
102 | 50 | 68 |
103 | 12 | 26 |
Thanks
See attached using
=if(NOT IsNum(maxstring(Week)), maxstring(Week), sum(Week))
-Rob
Yes you can, give it a go !!
Thax bill,
Can you pls elobarate more with example qvw I am unable to get the output like above
I have used Dimestion as Dim1 and expressions like sum(PRIORWEEKDATA),sum(PRIOR MONTHDATA) but unable successed .
Yes you can.
PFA
Hi,
TABLE1:
LOAD *
FROM table1.xlsx;
CONCATENATE (TABLE1)
LOAD *
FROM table2.xlsx;
Regards,
Marius
Hi SwathiRaj P
Try this:
Table1:
LOAD * INLINE [
Dim1, Week, Month
101, 25, 35
102, 50, 68
103, 12, 26
104, 35, 45
];
Table2:
Concatenate
LOAD Dim2 as Dim1,*;
LOAD * INLINE [
Dim2, Week, Month
Timeline, WK17, WK13-WK17
];
Drop Field Dim2;
It should work.
Hope this helps you.
Regards,
Manideep
It should be fine in table box,.....can we get same output in straight table by using expressions like sum(PRIORWEEKDATA),sum(PRIOR MONTHDATA) .
Thanks
can we get same output in straight table instead of table box.
ya, just concatenate in script
PFA