将数据从列中转换为qlikview的行
我有XLSX表,该表每月都有数据。 I want to convert it to rows while I load it to QlikView
First Name | Last Name | Home Owner | Mortgage | 44562 | 44593 | 44621 | 44652 |
---|---|---|---|---|---|---|---|
A | FSFD | Y | Y | 34343 | 48768 | 87788 | 878878 |
DGD | KJJHK | Y | N | 5454 | 454 | 4545 | 74878 |
FDQE | TERTER | N | N | 78676 | 787897 | 454654 | 7787 |
RTE | YRTYZ | Y | N | 78634 | 545 | 4787 | 5744 |
SAS | TRGFV | N | N | 6764 | 54465 | 1215 | 4878 |
I have the xlsx sheet which has data for every month in the columns. I want to convert it to rows while I load it to QlikView
First Name | Last Name | Home Owner | Mortgage | 44562 | 44593 | 44621 | 44652 |
---|---|---|---|---|---|---|---|
A | FSFD | Y | Y | 34343 | 48768 | 87788 | 878878 |
DGD | KJJHK | Y | N | 5454 | 454 | 4545 | 74878 |
FDQE | TERTER | N | N | 78676 | 787897 | 454654 | 7787 |
RTE | YRTYZ | Y | N | 78634 | 545 | 4787 | 5744 |
SAS | TRGFV | N | N | 6764 | 54465 | 1215 | 4878 |
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
在这种情况下,您可以使用 crosstable 负载。
从文档中:
在您的情况下,我们可以使用这样的脚本:
一旦脚本重新加载,结果表将是:
crosstable(月,值,4)
很重要。括号中的值指出:在4
第4列之后,将顶部行(标头)移动为列,并将新列命名月
它value
(您可以在屏幕截图中看到新的月
value 列)。月
和value
是构成名称,可以将其命名为任何您想要的。In this case you can use CrossTable load.
From the documentation:
In your case we can have script like this:
Once the script the is reloaded the resulted table will be:
CrossTable(Month, Value, 4)
is the important bit. The values in the the brackets are stating that: After the4
th column, move the top row (header) as column and name the new columnMonth
, name the values against itValue
(you can see the newMonth
andValue
columns in the screenshot).Month
andValue
are made-up names and the can be named whatever you want.