Presentation is loading. Please wait.

Presentation is loading. Please wait.

Creating Datasets & Using Data Flows

Similar presentations


Presentation on theme: "Creating Datasets & Using Data Flows"— Presentation transcript:

1 Creating Datasets & Using Data Flows
Presented by Andrea Vega, UI/UX Designer and Engineer

2 What is a Dataset? Query result that sticks around
Refresh any time, just as fast as a query Doesn’t matter where the data came from Can be shared FAST filtering, without hitting the production database again Use them in Reports, Dashboards, and Jobs

3 What is a Data Flow? A Data Flow is a series of steps that do really cool things to your data on its way into a Dataset.

4

5 It’s Fast Data streams into the Dataset
First record is added before the last one leaves the Datasource No need to load the whole thing at once Size of Dataset does not change the rate (records per second)

6 Examples Add fields from another Dataset or Datasource
Merge duplicates Calculate the days between two dates Set a default value for a column Make your own calculations Remove rows and columns

7 Demo start Start with a new Dataset
Query Designer lets you build a Dataset that is backed by a Datasource Start by picking Northwind Datasource and the “Orders” Mapping Use the Field Chooser to pick out fields Easily navigate related Mappings using the link tree

8 Add some flow steps Concatenate Remove fields Calculated field
Combine first and last name to make “Salesperson” Remove fields Get rid of first and last name now that we don’t need them anymore Calculated field Get the total order amount Fields from another Dataset Product category

9 Order matters Flow steps run one after the other
You can drag and drop them to change the order

10 Transformations Merge duplicates Normalize
One row per person instead of one row per order. Multiple orders get turned into arrays (list of values) Normalize Opposite of merge duplicates Array of orders turns into one row per order Person information is duplicated on each row Margaret Peacock Order # 1234 Order #1235 Order #1236 Andrew Fuller Order #4321 Order #5432 Margaret Peacock Order # 1234 Order #1235 Order #1236 Andrew Fuller Order #4321 Order #5432

11 A few more Time Between Calculated field
Find the days between order and shipment dates Calculated field Distinguish between late and on time orders Add fields from another Datasource Get continent and region for the destination country from the World Datasource Find/Replace Get the country name the World Datasource expects for USA Now change the order of the flow so this step happens before the remote join!

12 Fun with locations Zip2Geo Template field Geocodio
Get latitude and longitude estimate from a zip code Now look at discover, and see the map! Template field Show a fully formatted address Geocodio Get a precise location from the address Now the map is no longer approximate, you can see street view!

13 Flushing Sometimes all rows have to be seen before the row can be finished For example Two-pass calculations (e.g. percent of total) Merge duplicates This can slow down the query, but is sometimes necessary Coming soon: “Ordered merge duplicates” that assumes the records are already sorted. Does not need to flush.

14 Power Script Full access to each record, and across records
Create multiple fields at once Modify field definitions Omit records based on some condition Access input parameters Access to utilities (lodash, moment) Access to your own custom functions

15 Power Script $omit() : Omit row $record : Values in row $local : Persists across rows $fields : Field info $inputs : Inputs info $query : Query info $datasource : Datasource info $index : Row number _ : Collection manipulation moment : Date manipulation See a link to the help center article about these options in Informer

16 Catch these sessions for next steps
Teams and User Access – Governing Your Data Share Datasets Interact, Analyze and Discover Your Data Use filters Discover and save visuals

17


Download ppt "Creating Datasets & Using Data Flows"

Similar presentations


Ads by Google