Excel在枢轴表上未正确排序数字

发布于 2025-02-13 21:01:06 字数 3420 浏览 0 评论 0原文

正如标题所说,我的Excel Pivot表并未对数字进行排序。

当我从数据集中创建枢轴表时,目标是按年,每周编号和按pm_value(减少顺序)排序的数据对数据进行排序,如下所示。 “ PM_VALUE”列是一个计算的字段。

年度周年关键值1PM_VALUE值2
202312022-SFS-R757-L05-L05 VAC15.7778336.936
202312022-GS7-R125-L054.4078335.292 5.292
20222022-GS7-R008-R008-L05-L05-L05-L05-L05 LAV5.347836.47
6.422-1202222222222222222222222222222222222222222222222222222222222222222220283 3意值SFS-R735-L05 VAC15.7578306.938
202312022-GS4-R007-L0613.43182916.195
202312022-SFS-R804-L05-L05 VAC15.6468296.811 6.811
2022-GS7-2022-GS7-R083-R083-L083-L067496.66566.6656
6.66564.9836.656-12222222222222222222222222222222222222222222222222222222222222222222222222229号4.9417496.600

问题是PM_VALUE列的零(或可能显示为零的错误),并且这些值无法正确排序。目前,De排序的枢轴表就像下面的DE。

YearWeekNumKeyValue 1PM_ValueValue 2
202312022-SFS-R757-L05 VAC15.7778336.936
202312022-SFS-R735-L05 VAC15.7578306.938
202312022-GS7-R038-L065.0557496.753
202312022- GS7-R081-L065.0817486.795
20231........................................................144.75029-
2022139.684L124.641332023
20221L124.190- GS7PRJ52 -
-PRJ53 -GS7- L06 RGD000
202312022-SFS-R719-L06 RGD000
202312022-SFS-R789-L06 RGD002023
20221-GS4-R054-L05-L05 VAC14.13181117.416
2023120222-GS4-R015-L06-R0615.052802 802802 802 18.776
2023 2023 2023 1 2022120222-GS4-R0531-GS4-R0314-R05 R2 R2 R2 R2 R2 R2 R2 R2 R24.8567896.156
202312022-GS4-R058-L0612.63973117.290

我已经尝试在枢轴表选项上停用“自定义列表”的“自定义列表”排序复选框,更改排序的顺序(即年/月/键,键/年/年,等等)但是,没有什么能使零保持在排序列的底部。

有没有人经历过这样的事情,可以帮助我?

It's as the title says, my excel pivot table is not sorting numbers corretly.

When I create the pivot table from my dataset, the goal is to have the data sorted by year, week number, and the Keys sorted by the PM_Value (decreasing order) as shown here. The "PM_Value" column is a Calculated Field.

YearWeekNumKeyValue 1PM_ValueValue 2
202312022-SFS-R757-L05 VAC15.7778336.936
202312022-GS7-R125-L054.4078335.292
202312022-GS7-R008-L05 VAC5.3478336.421
202312022-SFS-R735-L05 VAC15.7578306.938
202312022-GS4-R007-L0613.43182916.195
202312022-SFS-R804-L05 VAC15.6468296.811
202312022-GS7-R083-L064.9837496.656
202312022-GS7-R107-L064.9417496.600

The problem is that the PM_Value column has zeroes (or possibly errors shown as zeroes), and these values are not sorting correctly. Currently de sorted pivot table is like de one below.

YearWeekNumKeyValue 1PM_ValueValue 2
202312022-SFS-R757-L05 VAC15.7778336.936
202312022-SFS-R735-L05 VAC15.7578306.938
202312022-GS7-R038-L065.0557496.753
202312022-GS7-R081-L065.0817486.795
20231.............
202312022-GS7-PRJ52-L124.64133139.684
202312022-GS7-PRJ53-L124.19029144.750
202312022-SFS-R715-L06 RGD000
202312022-SFS-R719-L06 RGD000
202312022-SFS-R789-L06 RGD000
202312022-GS4-R054-L05 VAC14.13181117.416
202312022-GS4-R015-L0615.05280218.776
202312022-GS4-R031-L05 R24.8567896.156
202312022-GS4-R058-L0612.63973117.290

I already tried to deactivate de "custom lists" sorting check box on the pivot table options, changing the order of the sort (i.e. Year/Month/Key, Key/Year/Month, etc) but nothing makes the zeroes stay on the bottom of the sorted column.

Has anyone experienced anything like that and could help me?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

策马西风 2025-02-20 21:01:06

问题在于,“ pm_value”的计算是一个划分,其中一些零是div/0误差,显示为零,这些错误与排序混乱。我在计算的字段上使用了IFERROR(CALC,0),问题消失了!

The problem was that the calculation of "PM_Value" is a division, and some of the zeroes were DIV/0 errors showing as zeroes and these errors that were messing with the sort. I used a IFERROR(calc,0) on the Calculated Field and the problem disappeared!

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文