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
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.

Top Solution Authors
Top Kudoed Authors
Users online (2,594)