Announcements
I need to hide a command bar button when related records exist. For example, one parent cash flow can have multiple child cash flows. If a parent cash flow has at least one child cash flow, the button should be hidden.
this is a command bar on a model driven app MAIN FORM trying to use the Powerfx formula to hide the visibility.
CountRows( Self.Selected.Item.'Child Cash Flows' // Use the relationship name (1:N navigation property) ) = 0
IsEmpty( Filter( Courses, Professor.Professor = Self.Selected.Item.Professor ) )
Please replace the table and column names with your table.
In the example above, Courses is the child table. The child table contains a Professor lookup column, and this Power Fx formula is implemented on the Professor main form, which is the parent table.
📩 Need more help? Mention@Kalathiya anytime! ✔️ Don’t forget to Accept as Solution if this guidance worked for you. 💛 Your Like motivates me to keep helping
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.
Congratulations to our 2026 Super Users!
Congratulations to our 2025 community superstars!
These are the community rock stars!
Stay up to date on forum activity by subscribing.
11manish 536
WarrenBelz 426 Most Valuable Professional
Haque 305