Use Package distributed to filter according to whether a dependent package was distributed or not on devices, and if the latest or previous releases were distributed.
General
Type
Package distributed
Package
Dependent package
Distributed state
Latest release checks if the latest known version of the dependent package was distributed on devices.
Any release checks if any release of the dependent package was distributed on devices.
Not distributed checks if the dependent package is not distributed on devices.
Note that it is not mandatory for the dependent package to have a Distribute type of action set or action configured. You can make any type of configuration that distributes the dependent package.