Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Table Transformer is one of the macros bundled in the Table Filter and Charts for Confluence app. The macro allows you to merge and associate all kinds of tables using both automatic presets and advanced SQL queries.

Sample table #1 -

Paneltitle

Merge tables preset

Switch to the page editor and explore the Table Transformer macro configuration.

This transformation 

Merged table:

tablename

Source tables:

table
Section
Column
width50%
-joiner
dateFormatm/d/yy
export-wordfalse
show-sourcefalse
export-csvfalse
id1554112380644_1305326515
worklog5|8|w d h m|w d h m
separator.
export-pdffalse
sqlSELECT * FROM T*
Table Excerpt Include
merge
typethis
Column
width50%
Table Excerpt
namemerge
 EmployeeAgeExperience, yearsPosition
Andy Miller253Middle front-end developer
Ashley Stone231.2Junior front-end developer
Jennifer Johnson243.5Middle front-end developer
 EmployeeExperience, yearsPositionAge
Oliver Black4Middle front-end developer27
Peter Jacobs1.5Junior front-end developer24
Thomas Powell6Senior front-end developer30
PaneltitleLookup

Sample table #2 - Merge tables preset

Section Column
width50%
Merged table:

Switch to the page editor and explore the Table Transformer macro configuration.

This transformation 

Source tables:

table-excerpt

Table Transformer
dateFormatm/d/yy
export-wordfalse
show-sourcefalse
export-csvfalse
id1554112854151_-1579224685
worklog5|8|w d h m|w d h m
join-columnName
separator.
export-pdffalse
sqlSELECT * FROM T1 OUTER JOIN T* ON T1.'Name' = T*.'Name'

Table Excerpt Include
namelookup
typethis

Column
width50%

namelookup
NameAgeExperience, yearsPosition
Andy Miller253Middle front-end developer
Ashley Stone231.2Junior front-end developer
Jennifer Johnson243.5Middle front-end developer
Oliver Black274Middle front-end developer
Peter Jacobs241.5Junior front-end developer
Thomas Powell306Senior front-end developer
NameJavaScriptJavaPythonCertification
Andy Miller(green star)(green star)(green star)

Status

-handy

Status

colour

certified

Green

id

title

93

Certified

Ashley Stone(green star)(green star)(green star)

Status

-handy

Statusuncertifiedid97

titleUncertified

Jennifer Johnson(green star)(green star)(green star)

Status

-handy

Status

colour

certified

Green

id

title

94

Certified

Oliver Black(red star)(red star)(green star)

Status

-handy

Status

colour

certified

Green

id

title

95

Certified

Peter Jacobs(red star)(red star)(star)

Status

-handy

Status

title

uncertified

Uncertified

id98
Thomas Powell(green star)(green star)(green star)

Status

-handy

Status

title

certifiedid96

Uncertified

Sample table #2 - Custom transformation


SELECT *, CASE WHEN 'Subtotal' < 1000 THEN "LOW" WHEN 'Subtotal' >= 1000 AND 'Subtotal' < 2000 THEN "MEDIUM" ELSE "HIGH" END AS 'Priority' FROM T1

Merged table:
Code Block
SELECT *, 
CASE WHEN 'Subtotal' < 1000 THEN "LOW" 
WHEN 'Subtotal' >= 1000 AND 'Subtotal' < 2000 THEN "MEDIUM" 
ELSE "HIGH" END 
AS 'Priority' 
FROM T1
Panel
titleCustom transformation using SQL (if-then construct)
Section
Column
width50%
Source tables:
Table Transformer
dateFormatm/d/yy
export-wordfalse
show-sourcefalse
export-csvfalse
id1554112767935_676640147
worklog5|8|w d h m|w d h m
separator.
export-pdffalse
sqlSELECT *, CASE WHEN 'Subtotal' < 1000 THEN "LOW" WHEN 'Subtotal' >= 1000 AND 'Subtotal' < 2000 THEN "MEDIUM" ELSE "HIGH" END AS 'Priority' FROM T1

Table Excerpt Include
namecustom
typethis

Column
width50%
Table Excerpt
namecustom
Order dateStoreItemsSubtotal
6/30/
2018
2020Store #3Date stamp$1040.00
6
/30
/
2018Store #1Printing of envelope A-4 size brown $2,604.006/
29/
2018
2020Store #1Date stamp$784.00
6/28/
2018Store #1Rubber band (medium and small size)$280.006/28/2018
2020Store #2Plastic folder with visiting card holding sheet$2,619.00
6/27/
2018Store #1ID card holder$420.006/27/2018Store #3File folder A to Z and 1 to 31$624.006/27/2018Store #1File separator A-4 size$705.006/27/2018Store #1Rubber band (big size)$1,656.006/27/2018Store #1Acknowledgement book$3,000.00
2020Store
6/27/2018Store 6/26/2018Store #3
#3ID card holder$3,128.00
6/26/
2018Store #1Stapler 10-D$686.006/26/2018Store #3Office file with clip$688.006/26/2018Store #3Plastic folder with hole- A4 size$732.006/26/2018Store #3Meeting writing pad $735.006/26/2018Store #2Brown paper sheet $1,024.00
2020Store #3
Letter opener$3,792.00
6/25/
2018
2020Store #2Notice board size 3x2fit & 5x3fit$320
.006/25/2018Store #2Writing pad A4 size line$378
.00
6/24/
2018
2020Store #3Scissors (big)$78.00
6/24/
2018Store #3Punching machine 520$484.006/24/2018Store #2Visiting card holder$1,168.006/24/2018Store #2
2020Store #2File separator A-4 size$2,254.00
6/23/
2018Store #1File folder A to Z and 1 to 31$105.006/23/2018Store #3Desk calculator$308.006/23/2018Store #2Thin A4 size paper folder$310.006/23/2018Store #2Office tray ( in & out )$567.006/23/2018Store #2Eraser$777.006/23/2018Store #3Writing pad  - A5 size line$1,444.006/23/2018
2020Store #2Stapler 10-D$1,472.00
6/22/
20186/22/2018Store #1Office file with clip$696.006/22/2018Store #2Punching machine 520$2,125.006/22/2018Store #2
2020Store #2
Calculator paper roll$484.00
Acknowledgement book$3,520.00
6/21/
2018Store #1Writing pad  - A5 size line$703.00
2020Store
6/21/2018Store #2Non dust chalk$775.006/21/2018Store #1Thin A4 size paper folder$968.006/21/2018Store #2ID card holder$1,798.006/21/2018Store
#3File separator A-4 size$3,441.00
6/20/
2018Store #3Office tray ( in & out )$510.00
2020Store
6/20/2018Store #3Printing of envelope A-4 size brown $1,372.006/20/2018Store #1Plastic folder with visiting card holding sheet$1,886.006/20/2018Store #1Gate pass book$2,214.006/20/2018Store #2Stamp pad ink$2,400.006/20/2018Store
#1A4 size plastic  file$3,762.00
6/19/
2018Store #2Pencil$432.006/19/2018Store #3Scale 30 cm & 12 cm$1,300.006/19/2018Store #2Binder clips 41mm,32mm,19mm, 51mm$2,450.006/19/2018Store #1Notice board size 3x2fit & 5x3fit$2,475.006/19/2018
2020Store
Store
#2A4 size plastic  file$3,526.00
6/18/
2018Store #3Key ring$198.006/18/2018Store #1Visiting card holder$448.006/18/2018Store #3Writing pad A4 size line$481.006/18/2018Store #3Acknowledgement book$646.006/18/2018Store #2Writing pad  - A5 size line$873.006/18/2018Store #2Bubble sheet$884.006/18/2018Store #3Binder clips 41mm,32mm,19mm, 51mm$1,128.006/18/2018Store #2
2020Store #2Date stamp$3,078.00
6/
18/2018Store #2Gel pen$3,608.006/17/2018Store #2File folder A to Z and 1 to 31$598.006/17/2018Store #2Meeting writing pad $984.006/17/2018Store #1Calculator paper roll$1,392.006/17/2018Store #2Paper cutter stand$3,139.006/17/2018Store #1
17/2020Store #1
Gel pen$3,268.00
6/16/
2018Store #2Letter opener$1,107.006/16/2018Store #3A4 size plastic  file$1,470.006/15/2018Store #1Highlighter (yellow,green,orange)$912.006/15/2018
2020Store
Store
#3Magnetic white board duster$1,035.00
6/15/
2018Store #1Binder clips 41mm,32mm,19mm, 51mm$1,053.006/15/2018Store #1Scissors (big)$1,316.006/15/2018Store #3Bubble sheet$1,760.006/15/2018Store #2Rubber band (big size)$2,520.006/15/2018Store #2
2020Store #2
Desk calculator$2,964.00
6/14/
2018Store #2Rubber band (medium and small size)$495.00
2020Store
6/14/2018Store #3Paper cutter stand$806.006/14/2018Store
#1Letter opener$3,045.00
6/13/
2018Store #3Stapler 10-D$1,440.00
2020Store
6/13/2018Store #3Notice board size 3x2fit & 5x3fit$1,533.006/13/2018Store
#2Magnetic white board duster$1,581.00
6/12/
2018
2020Store #3Visiting card holder$874
.006/12/2018Store #1Meeting writing pad $1,161
.00
6/
12/2018Store #1Punching machine 520$3,150.006/
11/
2018
2020Store #2Printing of envelope A-4 size brown $182.00
6/11/
2018Store #1Desk calculator$364.006/11/2018Store #3Library box$1,440.006/11/2018Store #3Stamp pad ink$1,470.006/11/2018Store #3Highlighter (yellow,green,orange)$1,920.006/11/2018Store #2Scale 30 cm & 12 cm$2,052.006/11/2018Store #3Gate pass book$3,492.006/11/2018
2020Store #1Office tray ( in & out )$5,000.00
6/10/
2018
2020Store #3
Gel pen$140.006/10/2018Store #2Library box$770.006/10/2018Store #3Calculator paper roll$1,036.006/10/2018Store #1Non dust chalk$1,892.006/10/2018Store #3
Brown paper sheet $2,976.00
6/9/
2018Store #3Cello tape 1"$160.006/9/2018Store #1Library box$450.006/9/2018Store #3Plastic folder with visiting card holding sheet$774.006/9/2018Store #2Key ring$1,080.006/9/20186/9/2018Store #1
2020Store #1
Stamp pad ink$2,300.00
Bubble sheet$3,589.00
6/8/
2018Store #3Thin A4 size paper folder$352.006/8/2018Store #3Eraser$760.006/8/2018Store #1Pencil$833.006/8/2018Store #1Scale 30 cm & 12 cm$1,681.006/8/2018
2020Store
Store
#2Cello tape 1"$2,160.00
6/7/
2018
2020Store #3Non dust chalk$3,772.00
6/6/
2018
2020Store #1Eraser$1,176.00
6/5/
2018
2020Store #1Key ring$495.00
6/5/
2018
2020Store #2Highlighter (yellow,green,orange)$2,726.00
6/4/
2018
2020Store #1Brown paper sheet $280
.006/4/2018Store #2Plastic folder with hole- A4 size$744.006/4/2018Store #1Plastic folder with hole- A4 size$1,320
.00
6/3/
2018
2020Store #1Cello tape 1"$980.00
6/3/
2018
2020Store #2Scissors (big)$2,278.00
6/2/
2018
2020Store #3Tape dispenser$264.00
6/2/
2018
2020Store #3Printing of invitation cards$561.00
6/2/
2018
2020Store #1Post it 2 x 3$600.00
6/2/
2018
2020Store #2A4 size writing pad spiral$624.00
6/2/
2018Store #2Gate pass book$630.006/2/2018Store #2Stapler HD-45$726.006/2/2018Store #3Rubber band (big size)$880.006/2/2018Store #1Correction tape$1,400.006/2/2018Store #3Printing of envelope cloth lined brown$1,428.006/2/2018Store #2Thick A4 size paper folder$1,575.006/2/2018Store #1Printing of invitation cards$1,675.006/2/2018Store #3
2020Store #3Plastic folder A4 size-$1,740.00
6/2/
2018
2020Store #3Sticker Sign here$4,150.00
6/1/
20186/1/2018Store #2Printing of envelope A-5 size brown$425.006/1/2018Store #3Rubber band (medium and small size)$648.006/1/2018Store #2Office file with clip$684.006/1/2018Store #3Flip chart$851.006/1/2018Store #1Stapler pins 10$968.006/1/2018Store #3Separators/dividers$1,200.006/1/2018Store #1Magnetic white board duster$1,200.006/1/2018Store #2White board marker$1,560.006/1/2018Store #1
2020Store #1
Writing pad A4 size line$156.00
Paper cutter stand$1,825.00
Priority

Status

-handy

Status

colour

low

Green

id

title

108

LOW

Status

-handy

Status

colour

medium

Yellow

id

title

100

MEDIUM

Status

-handy

Status

colour

high

Red

id

title

101

HIGH