cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Anonymous
Not applicable

Gallery with IF statement

Hey PowerUsers!

 

I am facing a small problem with my app, is there anything wrong with my code? Is it even possible to use a "IF" in the start of a gallery? "MyName" is the name of the user that should see all the items in the gallery, and I use the filter because the user who logs on should just see his own projects. Could anyone lead me in the right direction? Thanks.

 

If(User().Email = "MyName", SortByColumns('MyList', "ID", Descending),
Filter('MyList', Prosjektansvarlig.DisplayName = User().FullName)

"Prosjektansvarlig" is a collumn in "MyList". 

1 ACCEPTED SOLUTION

Accepted Solutions
Anonymous
Not applicable

Well, I forgot a ")" at the end, solved now. 

View solution in original post

1 REPLY 1
Anonymous
Not applicable

Well, I forgot a ")" at the end, solved now. 

View solution in original post

Helpful resources

Announcements
User Group Leader Meeting January 768x460.png

Calling all User Group Leaders!

Don't miss the User Group Leader meetings on January, 24th & 25th, 2022.

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Top Solution Authors
Top Kudoed Authors
Users online (1,634)