Claude
Skills
Sign in
Back

integrating-external-data

Included with Lifetime
$97 forever

Always use this skill when creating new lists to import CSV data into, importing CSV files into Pigment, mapping CSV columns to properties, deciding whether to import into dimensions vs transaction lists, configuring cross-application imports, troubleshooting data import issues, or importing excel files. This skill includes supporting files in this directory - explore as needed.

Data & Analytics

What this skill does



# Integrating External Data

This skill provides guidance for importing external data into Pigment applications efficiently.

## When to Use This Skill

There are three broad use-cases.

1. Direct CSV Import Workflow

- **Create lists for CSV import** - Creating new dimensions or transaction lists that will receive CSV data
- **Import CSV files** - Loading data from CSV into dimensions or transaction lists
- **Map CSV columns** - Matching columns to properties using semantic matching
- **Decide import targets** - Choosing between dimensions and transaction lists

2. Direct Excel import Workflow

- **Excel import** - Importing an excel spreadsheet

3. Generic information on how to create import connector in Pigment

- **Configure P2P imports** - Moving data between Pigment applications
- **Optimize import performance** - Scoping and filtering strategies
- **Troubleshoot imports** - Resolving connector issues and data quality problems

# Direct CSV Import Workflow

## Step 1: Identify Data Type

- [ ] Determine if master data (entities like customers, products) or transactional data (events like orders, sales)
- [ ] Search this SKILL.md for relevant section
- [ ] Read documentation files listed

## Step 2: Decide Import Target

**Use Decision Framework:**

| Data Characteristic                           | Import To            | Reason                                  |
| --------------------------------------------- | -------------------- | --------------------------------------- |
| Master data (customers, products, employees)  | **Dimension**        | Relatively static, used as dimension    |
| Transactional data (orders, sales, movements) | **Transaction List** | High volume, time-stamped events        |
| Static entities with properties               | **Dimension**        | Need to maintain properties/hierarchies |
| Granular event-based data                     | **Transaction List** | Aggregate to metrics using formulas     |

## Step 3: Map Columns & Import

- [ ] Map CSV columns to properties (semantic matching handles translations/abbreviations/synonyms)
- [ ] Create missing properties if needed
- [ ] Configure and execute import
- [ ] Validate results

## Prerequisites

**From modeling-pigment-applications skill:**

- Core Pigment concepts (dimensions, metrics, transaction lists, sparsity)
- When to use dimensions vs transaction lists

**If unfamiliar** → Use modeling-pigment-applications skill first

**Read**: [./data_import_csv.md](./data_import_csv.md)

**Quick Decision**:

- Master data (customers, products, employees) → **Dimension**
- Transactional data (orders, sales, movements) → **Transaction List**

# Direct Excel Import Workflow

Excel imports are to be done according to the instructions in [./excel_import.md](./excel_import.md)

# Generic information on how to create import connector in Pigment

**Questions**:

- "What integration types are available?"
- "When should I use CSV vs API vs connectors?"
- "What are P2P imports?"

**Read**: [./integration_overview.md](./integration_overview.md)

### Semantic Column Matching

**Scenario**: CSV columns don't exactly match property names

**Examples**:

- Translations: "Pays" → "Country"
- Abbreviations: "Emp" → "Employee"
- Synonyms: "Client" → "Customer"

**Read**: [./data_import_csv.md](./data_import_csv.md) - "Semantic Column Matching" section

**Key principle**: Match by meaning, not exact name

---

## Common Import Patterns

### Pattern 1: Master Data Import

**Scenario**: Importing customer, product, or employee master data

**Steps**:

- [ ] Import into **Dimension** (not transaction list)
- [ ] Map CSV columns to dimension properties
- [ ] Use semantic matching for column names
- [ ] Create properties if they don't exist

### Pattern 2: Transactional Data Import

**Scenario**: Importing orders, sales, or inventory movements

**Steps**:

- [ ] Import into **Transaction List** (not dimension)
- [ ] Each CSV row = one transaction
- [ ] Aggregate transaction list to metrics using formulas (BY modifier)

### Pattern 3: Semantic Column Matching

**Scenario**: CSV columns don't exactly match property names

**Approach**:

- Use semantic matching (meaning, not exact name)
- System handles translations, abbreviations, synonyms automatically
- Case-insensitive matching ("email" → "Email")

---

## Quick Reference Tables

### Decision Framework: Dimension vs Transaction List

| Use Dimension When                           | Use Transaction List When                     |
| -------------------------------------------- | --------------------------------------------- |
| Master data (customers, products, employees) | Transactional data (orders, sales, movements) |
| Relatively static data                       | High volume, time-stamped events              |
| Used as dimension in metrics                 | Need to aggregate to metrics                  |
| Need to maintain properties/hierarchies      | Granular event-based data                     |

### Semantic Matching Examples

| CSV Column   | Matches Property | Type                 |
| ------------ | ---------------- | -------------------- |
| "Pays"       | "Country"        | Translation (French) |
| "Emp"        | "Employee"       | Abbreviation         |
| "Client"     | "Customer"       | Synonym              |
| "email"      | "Email"          | Case variation       |
| "PRODUCT_ID" | "Product ID"     | Case + spacing       |

---

## Documentation Files

- **[./integration_overview.md](./integration_overview.md)** - Integration patterns and best practices
- **[./data_import_csv.md](./data_import_csv.md)** - CSV import to dimensions and decision framework
- **[./excel_import.md](./excel_import.md)** - Excel import guidelines

---

## Cross-References

**Before Integration**:

- **modeling-pigment-applications** - Dimensions, metrics, transaction lists

**After Integration**:

- **writing-pigment-formulas** - Aggregating transaction lists (BY modifier)
- **optimizing-pigment-performance** - Import performance optimization

---

## Critical Notes

- **Always determine data type first** - Master vs transactional drives all decisions
- **Use semantic matching** - Column names don't need to match exactly
- **Import to dimensions for master data** - Customers, products, employees
- **Import to transaction lists for events** - Orders, sales, movements
- **Validate after import** - Check data quality and completeness
- **Performance matters** - Large transaction lists need aggregation formulas
- **Document your decision** - Explain dimension vs transaction list choice

Related in Data & Analytics