In a model we have 4 list P1 as a top level and P4 as a bottom level. For P1 to P3 the selective access is enabled and for P4 selective access is not enabled.
We have an action card on a dashboard in which there is parent item when we are searching for the P3 items, only 2 of 10 P4 items under P3 parent are showing but the other items are not showing.

But when we are searching separately for P4 items then they are showing under P3 parent hierarchy.

What can be done for this thing?