Cross Tab in a Form
I have come up with a way to cross tabulate a table of values in a form
This is the table of values
And this is the table I use to create the Cross Tab
This code
Turns this
Into this
Because you can't hide the headings I have added a row 'heading' and made them look a bit like a spreadsheet.
Regards John
19 replies
-
Very interesting.
Can you Share the DB, I try to recreate it, but the code give me error, I'm doing something wrong.
-
No, the parent table is just a place holder.
On a similar, probably better way, this works well in a formula field
No need for a second table, works on the fly, and could be simplified with an array of columns.
-
Aside from having my rows and cols the wrong way round(!), I now have the formula reduced down to this
Regards John
-
In a formula field.
-
obviosly, Work perfect. There any way to change the rows and colum by the original options. ?
-
H Rafael
Yes, the rows on line 2, column on line 3, and the values on lines 12, 14, 18, and 20 can all be changed. I have improved to look of the table created by right aligning the values.
Regards John
-
John Halls
The idea look good, I think is very difficult no value 0 and the graphics can't grouped by Wxx
-
John Halls
This is good example. The Problem is the Formula Field don't have scroll bar or fix colum.
-
Hi John
What a useful script. I particularly like the way you attacked it from all sides.
I can use this .... I love it when clever people come up with cracking ideas !!
-
John Halls
Hi John
I'm do some Changes for my DB,
Now I have in the first Row my Activity with the Weeks, and in the second line the Expenses by weeks with the total. I will try in another tab place all Activities with the same idea, I hope.
Content aside
-
1
Likes
- 2 yrs agoTue, June 14, 2022 at 12:47 PM UTCLast active
- 19Replies
- 208Views
-
3
Following