# Generic

Le préfixe generic décompresse un tableau long, créant un champ par valeur d'attribut. Cette procédure s'apparente à la génération d'un tableau croisé dynamique, à ceci près que l'on obtient un tableau distinct par champ créé.

Syntaxe :

Generic( loadstatement | selectstatement )

Les tables chargées via une instruction generic ne sont pas concaténées automatiquement.

Exemple :

`Table1:` `Generic 
 LOAD * INLINE` `[` `Key, Attribute, Value` `Bob, Jan, 100` `Bob, Feb, 200` `Bob, Mar, 300` `Kate, Jan, 400` `Kate, Feb, 500` `Kate, Mar, 600` `];` ` `

**Résultat :**

Vous obtenez 3 tables :

Table1.Jan:

Exemple 1

| Key, | Jan |
| --- | --- |
| Bob, | 100 |
| Kate, | 400 |

Table1.Feb:

Exemple 2

| Key, | Feb |
| --- | --- |
| Bob, | 200 |
| Kate, | 500 |

Table1.Mar:

Exemple 3

| Key, | Mar |
| --- | --- |
| Bob, | 300 |
| Kate, | 600 |

## En savoir plus

* [Load](https://help.qlik.com/fr-FR/qlikview/September2026/Subsystems/Client/Content/QV_QlikView/Scripting/ScriptRegularStatements/Load.htm)
* [Select](https://help.qlik.com/fr-FR/qlikview/September2026/Subsystems/Client/Content/QV_QlikView/Scripting/ScriptRegularStatements/Select.htm)
* [Crosstable](https://help.qlik.com/fr-FR/qlikview/September2026/Subsystems/Client/Content/QV_QlikView/Scripting/ScriptPrefixes/crosstable.htm)
* [Bases de données génériques](https://help.qlik.com/fr-FR/qlikview/September2026/Subsystems/Client/Content/QV_QlikView/DataSource/generic-databases.htm)