Showing results for 
Search instead for 
Did you mean: 
Helper I
Helper I

Hide icons / only appear in the first action

Hi all, 

I'm create a simple commentary app to use in power bi report. 

The idea is to use the integration of the power bi filters (Country, Month and Year) and write comments with these applied filters.

I already created it, but I have a problem.

When I filter a country, a month and a year that has not yet been commented, I want to have a button to add a comment, and then that button was hidden and only two buttons appear, the one to edit that same comment, the save and cancel.

is it possible to do that? There will only be one comment for each filter applied, and only editable.But if there is no comment yet this scenario will be needed.


Add new Comment: 
Add New CommentAdd New Comment

Cancel Edit Comment: 

Cancel Edit CommentCancel Edit Comment

Cancel New Comment: 

Cancel New CommentCancel New Comment


Save Edit Comment: Save Edit CommentSave Edit Comment

Save New Comment: Save New CommentSave New Comment

Add New Comment: 

Refresh('Golden Triangle Volume 1') && EditForm(Form1)&& Navigate(Screen2;Fade)

 Save New Comment: 

&& Navigate(Screen1;Fade)

Cancel New Comment: 


Cancel Edit Comment:

UpdateContext({EditRecord: 0});;

Save Edit Comment: 

UpdateContext({EditRecord: ThisItem.ID});;
    'Golden Triangle Volume 1';
    {ID: ThisItem.ID};
       Comment: TextInput1.Text

 Kind regards. 

Frequent Visitor

Hello @bfranco44 ,

Using the 'Visible' properties of your icons should do what you want.

For instance in the Visible property of your add button, you should put something like this : 


where you replace yourSelectedItem with the name of the item you're trying to add a comment to.

Hope I could help 🙂

Helpful resources

PA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

Power Query PA Forum 768x460.png

Check it out!

Did you know that you can visit the Power Query Forum in Power BI and now Power Apps

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

PowerPlatform 768x460.png

Microsoft Learn

Check out our new Discover Your Career Path blog post series and get all the details.

Users online (1,899)