Components for Delphi and C++ Builder.

Go to Russian forum
Go to EhLib.com
It is currently 28 Mar 2024, 15:42

All times are UTC




Post new topic Reply to topic  [ 4 posts ] 
Author Message
PostPosted: 06 Mar 2023, 10:22 
Offline

Joined: 14 Jul 2022, 08:46
Posts: 22
Hi
I have DbgrigEh as picture #1
I have the following error in result:
1-(TOTAL) columns filtering for value 4 i got empty result.(pict #2)
note :the filed in mssql has value 3.999999999
2-(%) column columns filtering for value 100 i got one record (pict#3)
note:(%) column is internalCalc field.

Best Reqards


Attachments:
ehlib_perc.jpg
ehlib_perc.jpg [ 18.42 KiB | Viewed 655 times ]
ehlib_total.jpg
ehlib_total.jpg [ 15.95 KiB | Viewed 655 times ]
ehlib_dbgrideh.jpg
ehlib_dbgrideh.jpg [ 27.15 KiB | Viewed 658 times ]
Top
 Profile  
 
PostPosted: 06 Mar 2023, 10:47 
Offline

Joined: 08 May 2014, 18:06
Posts: 660
Hello

4 <> 3.999999999.
For this reason, the filter does not display any records.

I don't know what formula you have in the internalCalc field.
But maybe 2 (Cost ) * 2(Profit ) <> 3.999999999 (Total ) and so 3.999999999 is not 100% of 2*2.

_________________
Best regards
EhLib Support Team


Top
 Profile  
 
PostPosted: 08 Mar 2023, 16:18 
Offline

Joined: 14 Jul 2022, 08:46
Posts: 22
The internalCalc field is : (profit/total)*100


Top
 Profile  
 
PostPosted: 10 Mar 2023, 13:00 
Offline

Joined: 08 May 2014, 18:06
Posts: 660
Hello

DataSet always performs an exact comparison when filtering.
If you need an approximate comparison, then you need to use your own version of Filtering.

_________________
Best regards
EhLib Support Team


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 58 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group