v3.25.3

Restructuring and Other Charges (Details) - USD ($) $ in Millions | 3 Months Ended |
--- | --- | ---
Oct. 31, 2025 | Oct. 31, 2024 | Jul. 31, 2025
Minimum |  |  |
Restructuring Cost and Reserve |  |  |
Restructuring and related cost | $ 5.0 |  |
Maximum |  |  |
Restructuring Cost and Reserve |  |  |
Restructuring and related cost | 10.0 |  |
Employee-related Liabilities, Current |  |  |
Restructuring Cost and Reserve |  |  |
Restructuring reserve | 4.5 |  | $ 7.1
Operating Segments |  |  |
Restructuring Cost and Reserve |  |  |
Restructuring costs | 3.4 | $ 3.3 |
Operating Segments | Cost of Sales |  |  |
Restructuring Cost and Reserve |  |  |
Restructuring costs | 2.0 | 1.1 |
Operating Segments | Operating Expense |  |  |
Restructuring Cost and Reserve |  |  |
Restructuring costs | $ 1.4 | $ 2.2 |

X
- Definition Amount of expected cost remaining for the specified restructuring cost. + References No definition available. + Details
Name: | us-gaap_RestructuringAndRelatedCostExpectedCostRemaining1
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition Line items represent financial concepts included in a table. These concepts are used to disclose reportable information associated with domain members defined in one or many axes to the table. + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Topic 420 -SubTopic 10 -Name Accounting Standards Codification -Section S99 -Paragraph 2 -Subparagraph (SAB Topic 5.P.4.d) -Publisher FASB -URI https://asc.fasb.org/1943274/2147479823/420-10-S99-2 Reference 2: http://www.xbrl.org/2003/role/disclosureRef -Topic 420 -SubTopic 10 -Name Accounting Standards Codification -Section S99 -Paragraph 2 -Subparagraph (SAB Topic 5.P.4.b.1) -Publisher FASB -URI https://asc.fasb.org/1943274/2147479823/420-10-S99-2 Reference 3: http://www.xbrl.org/2003/role/disclosureRef -Topic 420 -SubTopic 10 -Name Accounting Standards Codification -Section S99 -Paragraph 2 -Subparagraph (SAB Topic 5.P.4.b.2) -Publisher FASB -URI https://asc.fasb.org/1943274/2147479823/420-10-S99-2 Reference 4: http://www.xbrl.org/2003/role/disclosureRef -Topic 420 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 1 -Subparagraph (c) -Publisher FASB -URI https://asc.fasb.org/1943274/2147482017/420-10-50-1 Reference 5: http://www.xbrl.org/2003/role/disclosureRef -Topic 420 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 1 -Subparagraph (b)(2) -Publisher FASB -URI https://asc.fasb.org/1943274/2147482017/420-10-50-1 Reference 6: http://www.xbrl.org/2003/role/disclosureRef -Topic 420 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 1 -Subparagraph (b)(1) -Publisher FASB -URI https://asc.fasb.org/1943274/2147482017/420-10-50-1 Reference 7: http://www.xbrl.org/2003/role/disclosureRef -Topic 420 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 1 -Subparagraph (d) -Publisher FASB -URI https://asc.fasb.org/1943274/2147482017/420-10-50-1 + Details
Name: | us-gaap_RestructuringCostAndReserveLineItems
Namespace Prefix: | us-gaap_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Definition Amount, after cash payment, of expenses associated with exit or disposal activities pursuant to an authorized plan. Excludes expenses related to a discontinued operation or an asset retirement obligation. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Name Accounting Standards Codification -Section 45 -Paragraph 28 -Subparagraph (b) -SubTopic 10 -Topic 230 -Publisher FASB -URI https://asc.fasb.org/1943274/2147482740/230-10-45-28 + Details
Name: | us-gaap_RestructuringCosts
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition Carrying amount (including both current and noncurrent portions of the accrual) as of the balance sheet date pertaining to a specified type of cost associated with exit from or disposal of business activities or restructuring pursuant to a duly authorized plan. + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Topic 420 -SubTopic 10 -Name Accounting Standards Codification -Section S99 -Paragraph 2 -Subparagraph (SAB Topic 5.P.4.b.2) -Publisher FASB -URI https://asc.fasb.org/1943274/2147479823/420-10-S99-2 Reference 2: http://www.xbrl.org/2003/role/disclosureRef -Topic 420 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 1 -Subparagraph (b)(2) -Publisher FASB -URI https://asc.fasb.org/1943274/2147482017/420-10-50-1 + Details
Name: | us-gaap_RestructuringReserve
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Details
Name: | srt_RangeAxis=srt_MinimumMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | srt_RangeAxis=srt_MaximumMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_BalanceSheetLocationAxis=dci_EmployeeRelatedLiabilitiesCurrentMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | srt_ConsolidationItemsAxis=us-gaap_OperatingSegmentsMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_IncomeStatementLocationAxis=us-gaap_CostOfSalesMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_IncomeStatementLocationAxis=us-gaap_OperatingExpenseMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |