I am trying to show/hide a custom command bar button in an Activity view based on the type of Activity that's selected using a Power Fx visibility formula. I believe the formula should be something like this:
CountRows( Filter(Self.Selected.AllItems, 'Activity Type'='letter') ) > 0
That should filter the list of selected items based on the activity type, then count the resulting rows, and then be visible when there are at least 1 selected row of that type. But, this formula is not valid. Any suggestions on how to get this working?
