Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi,
My data set looks like this
Main:
ID | Name |
---|---|
1 | ABC |
2 | DEF |
3 | GHI |
4 | JKL |
Aux:
ID | ID-1 |
---|---|
1 | 4 |
2 | 3 |
3 | 2 |
4 | 1 |
Now I need to build a pivot like this:
ID | ID-1 | Name |
---|---|---|
1 | 4 | JKL |
2 | 3 | GHI |
3 | 2 | DEF |
4 | 1 | ABC |
is it possible?
Thanks,
Jean
Like this??
Main:
LOAD ID as IDD,
Name
FROM
[279199.xlsx]
(ooxml, embedded labels, table is Sheet1);
Right join (Main)
Aux:
LOAD ID ,
[ID-1] as IDD
FROM
[279199.xlsx]
(ooxml, embedded labels, table is Sheet2);
Thanks P M but i can not change the load script.
You want to achieve this in front end only ???
yes
Try like:
Above( ID,-NoOfRows()+ 2*RowNo()-1)
Above( Name,-NoOfRows()+ 2*RowNo()-1)
Hi tresesco,
Can you please explain that how you apply logic for this and how this functions will works.
Thanks & Regards
PM
Above() with negative offset works like below(). Rest is simple math and row reference idea.