Hi all,
I have been trying to create a function whereby I give my user the ability to view a pivoted table.
Obviously this is not supported within appsheet so my idea is to create a workaround that uses a spreadsheet that has the data structured into a transposed manner, such as below
So for my particular app i have a parent child relationship of Order/Order Details, and i would like to marry this pivot table, lets call it - CostingSheet, to the Child (Order Details) so that the user can easily fill out fields in a quick edit table view such as below
The second action would populate a column in the CostingSheet table with the OrderDetails key, such as in red
Is this idea worth pursuing or does one of the more advanced users here have a different solution to edit pivoted data?
Solved! Go to Solution.
Then your best bet is to create those description and cost items as a subtable of Order Details. You could create a complicated set of Actions that could create/mod/delete them as you changed the main Order Details but thats a seperate discussion.
The only other option available to you would be to output the data in to a PDF report. With those you have some scope to lay it out how you want.
Whilst Iโm not clear on your data structure here, it sounds doable. I would guess you create a slice of OrderDetails, which then displays in a View. If you then group that view by [Entity]? then that should pivot it.
If Iโve got this completely wrong then reply with details of both tables inc which columns you need to see and which are Key column and Iโll try to help
Hi Simon, thanks for helping out!
I canโt pivot the entity with out setting it up manually in a new sheet, i think, unless thatโ what you mean, my Order Details structure is like so
Blue fields are editable, and the elephant in the room is how i will create an action to copy those blue fields back to where they need to reside, in the Order Details table
btw i love your website i spend an hour lat week reading through your blogs!
edit: so just to clarify, one CostingSheet table is equivalent to one row in the OrderDetails table
1 = Create a Table view which looks at the OrderDetail sheet
2 = Set to group by Entity
3 = Order by Description
4 = Turn on โEnable QuickEdit (beta)โ
5 = By defrault this will allow users to edit any column theyโd normally be able to edit in form. To restrict this you might need to create a CONTEXT(โViewโ)=โView Nameโ formula
Let me know if we are on the right track here
The problem is there is no column named โentityโ in the Order Details sheet, i added that column in the concept CostingSheet i created to explore this idea, the Order Details sheet has about 9 columns with the Entity metrics (Button description, Collar description, ect) and then 9 columns with the entity values (Button Cost, Collar cost, ect)
I could rename each of the 9 metrics to โEntityโ but appsheet wont allow columns with the same names so iโm not sure im following you
See my order details sheet here
I dont think its possible to pivot data, i mean i know its not possible to pivot data as its not supported, unless i use a work-around, the one im exploring now is making progress.
Another idea would be to split off all the cost/entity types as grandchildren and then i could conceivably aggregate all those children into one table where i could then group by the same column name, and then use separate display names or something of that sort
Are you wanting to see this pivoted table from the parent Order? record or in the OrderDetails record?
just the order details record is fine
Then your best bet is to create those description and cost items as a subtable of Order Details. You could create a complicated set of Actions that could create/mod/delete them as you changed the main Order Details but thats a seperate discussion.
The only other option available to you would be to output the data in to a PDF report. With those you have some scope to lay it out how you want.
Thanks Simon, i can see now my entities in question should all be children of the OrderDetails record.
appreciate the guidance
User | Count |
---|---|
16 | |
11 | |
9 | |
8 | |
4 |