Hi,
I have an app that tracks the status of orders, basically an order has certain steps:
Thereโs two things here that I want to elaborate on:
Is there a way to assign a value to each of the steps? I can imagine doing a chart but I want to make sure Order Placed has a value of 1, how can I set this?
When I display these as a list, how can I order them in the step without showing the number, how can I make the list put โOrder Placedโ at the top before โAssemblingโ (which would be the descending, alphabetical order)
If I recall correctly, you can use an Enum column, define these steps as values of the column, and assign an order to them. That ordering will be honored in views if you sort by the Enum column. Iโm not sure what effect this would have on a chart, but it might be worth trying! Let us know!
You could make a new table like this:
Where Number is the key, and Step is the label.
Then change your Enum column to a Ref column pointing at this new table. The Steps should be listed in the proper order by default this way, or you could make it explicit by setting Valid_if to something like:
ORDERBY( newtable[Number] , [Number] )
Now, since the Ref column actually holds the key value (Number), you can set your โNext Stepโ action to increment that column by 1.
As far as displaying a percentage completed, we can start by creating a new Percent-type column, with a formula like:
[Step] / MAX( newtable[Number] )
And here is a cool way to visually display percentage values:
User | Count |
---|---|
41 | |
36 | |
28 | |
23 | |
16 |