cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
gal123
Level: Power Up

How can i filter by current user and show more columns?

Hi guys,

 

I am currently experimenting with PowerApps and I have one thing I can't seem to understand.
I am editing the browse screen, trying to filter the items. I wanted the items to be filtered by the current user, so I user the formula: Filter(MyData,"Author.FullName" = User().FullName)
I also want to show some columns because currently I don't have any so I am trying to use the formula:
ShowColumns(MyData, "Avarage", "sum")

it seems that I can't get the two formulas to work together. I am trying to use && operator:

Filter(MyData,"Author.FullName" = User().FullName) && ShowColumns(MyData, "Avarage", "sum")

but it just gives me an error.
what can I do to show the columns I want AND use the filter function?

 

 

thanks!

3 REPLIES 3
Community Support Team
Community Support Team

Re: How can i filter by current user and show more columns?

Hi Gal123,

 

I guess you have created an app based on SharePoint list, then you tried to edit the Browse Screen. There should be Person and Group column in you SharePoint list, and there is only the Title column shown in the app.

 

If I understand you correctly, may I suggest you add two Text box controls in the gallery? Then set the Text property of the two Text box controls to Average and Sum. The columns you want would be shown.

gallery.PNG

 

Please try if this works for you.

 

Best regards,
Mabel Mao

Community Support Team _ Mabel Mao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
gal123
Level: Power Up

Re: How can i filter by current user and show more columns?

Hi Mabel,

 

thanks for your reply!

unfortunately, I can't seem to implement your suggestion.
I am trying to display some filelds in the browse screen and then filter them. I can't seem to understand how this is done.
here is a screen shot of my data:
Powerapps.jpg

 

I would like to display a "people picker" column named "SE". also, i would like to filter by that column, items should only show if the current user is the user in the field "SE".
this is currently my formula for "items":


SortByColumns(Search(CaseReview, TextSearchBox1.Text, "Avarage","Title","sum"), "Avarage", If(SortDescending1, Descending, Ascending))

 

Any help would be greatly appriciated!

 

Community Support Team
Community Support Team

Re: How can i filter by current user and show more columns?

Hi Gal123,

 

Do you have a Person/Group column type? Could you show me the column types contained in your list?

 

In my SharePoint list, I have a Person/Group column type, in the app, all the columns are shown except the “Person/Group” column.

PPP.png 

PPP1.png


So it seems that Person/Group column would not be shown in the app. To show more columns, you could add more Text box controls, then set its Text property as ThisItem.ColumName.

 

Hope this article could be a reference for you:
https://powerapps.microsoft.com/en-us/tutorials/working-with-forms/


Best regards,
Mabel Mao

Community Support Team _ Mabel Mao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Power Platform World Tour

Find out where you can attend!

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

Top Kudoed Authors
Users Online
Currently online: 393 members 6,485 guests
Please welcome our newest community members: