Hacking Domo WebformCreate "Excel Like" Reports
Pearce Aurigemma, Sr Business Intelligence Manager, MobileIron
Modern security and enablement
MobileIron provides cloud and endpoint security
Use-Cases
1. Transition leaders who “like the old excel reports” to utilize Domo
2. See above...
Skills You Need• Basic HTML & CSS• Basic SQL• DataFlow Experience
Note: All Data In this Presentation is obfuscated
Agenda
Concept Build CardDetailed Implementation
1Table Layout/D
esign
2 Lookup Table
3SQL DataFlow
1 Table Layout/Design
Lookup Table DataFlow ExampleSet
‘lookup’ string and
join together
Filter & group to create individual cells
Initial calculations to support filters
3 SQL DataFlow
Replace values in
Layout Table with values
from Lookup Table
Agenda
Concept Build CardDetailed Implementation
1Table Layout/D
esign
2 Lookup Table
3SQL DataFlow1
1 Table Layout/Design – Sort Column
1 Table Layout/Design – Sort Column
1 Table Layout/Design – HTML Cell
1 Table Layout/Design – HTML Cell
<div style="font-weight: bold; font-size: 125%; color: rgb(192,80,77);">Example Text
</div>
1 Table Layout/Design – HTML Cell
CSS Variablesfont-weightfont-sizecolortext-align…
1 Table Layout/Design – Lookup Cell
Good
LOOKUP_C1_R4
Bad
AMERICAS_Q4_2018
1 Table Layout/Design – Lookup Cell
1 Table Layout/Design – Empty Cell
<div></div>
1Table Layout/D
esign
2 Lookup Table
3SQL DataFlow2
2 Lookup Table
• Use data flows to build lookup table• Name columns
• “lookup”• “value”
• Row order does not matter
1Table Layout/D
esign
2 Lookup Table
3SQL DataFlow3
3 SQL DataFlow
• Name your SQL Data Flow
3 SQL DataFlow
• Name your SQL Data Flow• Select the two Datasets
3 SQL DataFlow
• Name your SQL Data Flow• Select the two Datasets• Add/Update SQL Transforms
3 SQL DataFlow
• Name your SQL Data Flow• Select the two Datasets• Add/Update SQL Transforms• Set Output to Layout
Dataset
3 SQL DataFlow
• Name your SQL Data Flow• Select the two Datasets• Add/Update SQL Transforms• Set Output to Layout
Dataset• Trigger upon Update
3 SQL DataFlow
• First 2 transforms are to rename your tables to layout_table and lookup_table
QUESTIONS?/* ColumnX */UPDATE `layout_table` AS t1SET ColumnX = IFNULL((SELECT REPLACE(t1.`ColumnX`, t2.`lookup`, t2.`value`)FROM `lookup_table` AS t2WHERE INSTR(t1.`ColumnX`, t2.`lookup`) > 0), t1.`ColumnX`)
3 SQL DataFlow
Column#
Agenda
Concept Build CardDetailed Implementation
Building the Card
Building the Card- Select Table
Building the Card- Drag Columns
Building the Card- Set Sort
Building the Card- Set Sort
Tips & Advanced Ideas• Use as little HTML as possible• The SQL will replace lookup values in cells with additional text• You can create dynamic rules
• Example: Negative numbers are red• Does not work on Domo Mobile App