Bug 142929 - FILEOPEN XLSX Standard filter with condition “Earlier than” imported incorrectly
Summary: FILEOPEN XLSX Standard filter with condition “Earlier than” imported incorrectly
Status: RESOLVED FIXED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Calc (show other bugs)
Version:
(earliest affected)
Inherited From OOo
Hardware: All All
: medium normal
Assignee: Tünde Tóth
URL:
Whiteboard: target:7.3.0 target:7.2.0.2
Keywords: filter:xlsx
Depends on:
Blocks: XLSX-Autofilter
  Show dependency treegraph
 
Reported: 2021-06-18 10:50 UTC by NISZ LibreOffice Team
Modified: 2021-08-09 12:15 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
Example file from Excel with standard filter condition “Earlier than” (10.40 KB, application/vnd.openxmlformats-officedocument.spreadsheetml.sheet)
2021-06-18 10:50 UTC, NISZ LibreOffice Team
Details
Screenshot of the original document side by side in Excel and Calc (110.67 KB, image/png)
2021-06-18 10:51 UTC, NISZ LibreOffice Team
Details
Same example file filtered for plain number being less than 10 (12.34 KB, application/vnd.openxmlformats-officedocument.spreadsheetml.sheet)
2021-06-28 13:52 UTC, NISZ LibreOffice Team
Details
Filtering numbers with less than condition, also becomes <> in Calc (95.46 KB, image/png)
2021-06-28 13:53 UTC, NISZ LibreOffice Team
Details

Note You need to log in before you can comment on or make changes to this bug.
Description NISZ LibreOffice Team 2021-06-18 10:50:27 UTC
Created attachment 173003 [details]
Example file from Excel with standard filter condition “Earlier than”

Attached example file was made in Excel and on the Date column there is a standard filter set of type “Before” resulting in a filter condition of “Earlier than”.
When opened in Calc the condition appears to be <> (meaning not equals) instead of <.

Steps to reproduce:
    1. Open attached file
    2. Open the autofilter, select Standard Filter

Actual results:
The Standard Filter dialog shows the condition as: <>
The date is also converted to a plain number, that's bug 142928.

Expected results:
The condition should be: <

LibreOffice details:
Version: 7.3.0.0.alpha0+ (x64) / LibreOffice Community
Build ID: c703b2d22c3f45825d9c9d790c3b5a4b6f97e776
CPU threads: 4; OS: Windows 10.0 Build 18363; UI render: default; VCL: win
Locale: hu-HU (hu_HU); UI: hu-HU
Calc: CL

Also in 7.0, 6.0, 5.0, 4.0, 3.5
Comment 1 NISZ LibreOffice Team 2021-06-18 10:51:01 UTC
Created attachment 173004 [details]
Screenshot of the original document side by side in Excel and Calc
Comment 2 NISZ LibreOffice Team 2021-06-28 13:52:21 UTC
Created attachment 173245 [details]
Same example file filtered for plain number being less than 10

Also happens for filtering plain numbers with "less than" condition in Excel.
Comment 3 NISZ LibreOffice Team 2021-06-28 13:53:09 UTC
Created attachment 173246 [details]
Filtering numbers with less than condition, also becomes <> in Calc
Comment 4 Commit Notification 2021-07-13 16:41:58 UTC
Tünde Tóth committed a patch related to this issue.
It has been pushed to "master":

https://git.libreoffice.org/core/commit/0d3398e5d141b79706653c04f1ab6dc9381a5cc1

tdf#142929 XLSX: fix import of "Less than" filter condition

It will be available in 7.3.0.

The patch should be included in the daily builds available at
https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
https://wiki.documentfoundation.org/Testing_Daily_Builds

Affected users are encouraged to test the fix and report feedback.
Comment 5 Commit Notification 2021-07-14 08:32:52 UTC
Tünde Tóth committed a patch related to this issue.
It has been pushed to "libreoffice-7-2":

https://git.libreoffice.org/core/commit/bbd4d7c1b8a219cd295fd799d39b9cbb7a5b464d

tdf#142929 XLSX: fix import of "Less than" filter condition

It will be available in 7.2.0.2.

The patch should be included in the daily builds available at
https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
https://wiki.documentfoundation.org/Testing_Daily_Builds

Affected users are encouraged to test the fix and report feedback.
Comment 6 NISZ LibreOffice Team 2021-08-09 12:15:20 UTC
Verified in:
Version: 7.3.0.0.alpha0+ (x64) / LibreOffice Community
Build ID: d1f1f546b212ecd651146addeb328806bb270d5f
CPU threads: 4; OS: Windows 10.0 Build 17134; UI render: Skia/Raster; VCL: win
Locale: hu-HU (hu_HU); UI: hu-HU
Calc: threaded