Hey all,
I am looking to make a Tablet view of the ticket system that I am currently working on at the moment.
As you can see with the image, I have buttons and I have a gallery below the buttons. I have two goals to be accomplished with this.
distinct(filter(datasource, status))
The buttons are an easy fix since you can just use UpdateCOntext and use a global variable, but they dont look pleasing to the eye vs the gallery.
Filter(Tickets_1,If(TicketView = "Open", show all open tickets, If(TicketView = "In Progress", show all in progress tickets, If(...........))))
Any help would be appriciated. Thank you in advance!
Hi @Daemagor
I don't think you can have it in the Gallery to list All Tickets. Maybe have a button next to it which says Show All Tickets
Thank you so much! I have one last question. If I want to show All Tickets, how would I do that? Since it only shows the values in the datasource. Should I just make shift one using rectangles and a button overlaying it?
Change Gallery1.Item to
Distinct(Tickets_1, Status.Value)
Change the Label to
ThisItem.Result
Crap, yeah that would do it. Although its not showing all the status' that are in the Datasource. I have atleast 5 Open TIckets and you only see Completed
What is the type of Status column in your datasource?
Is it a lookup field?
If yes try to do this
ThisItem.Result.Value
Your Gallery.Item is this?
Distinct(Tickets_1, Status)
If yes
ThisItem.Result will be the name of the Status
For it to work you have to put it inside Gallery card not outside, if you put outside you get invalid argument type.
Again posting a picture of what you have setup would make it easier to solve
@Anonymous & @Anonymous,
I want the name not the number, sorry for the confusion. But ThisItem.Result on result is spiting and error that it expects a Text value but the rule produces incompatible record values.
This is inside the gallery too
Well the CountRows function is literally counting how many of said condition you have so that is going to be a number. So if you aren't expecting a number that isn't going to work for you.
Hi @Daemagor
Do you want the name of status or number of how many tickets there are with specific status?
If you want the name just change label.Text to
ThisItem.Result
If you want the number of tickets with specific status change label.Text to
CountRows(Filter(Tickets_1, Status = ThisItem.Result))
ThisItem.Result only works inside Gallery Card so make sure your label is inside the gallery card otherwise you get an error.
Pictures with what you have would help to solve it faster.
Here is what I mean by inside gallery or outside:
WarrenBelz
791
Most Valuable Professional
MS.Ragavendar
410
Super User 2025 Season 2
mmbr1606
275
Super User 2025 Season 2