# Metadata formatting

For all set ups, where KPI cards are defined by dimensions, PowerKPIs has also an option to **set metric formats programmatically**. Especially in scenarios, where a large number of KPI cards needs to be displayed, and KPIs frequently change in addition, this can be a huge time saver.

Selecting the Assign Formats From Metadata option will open the Field Mapping view to map metric attributes to data fields.&#x20;

<figure><img src="https://2268858626-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FxF3J9z75cLxrADGYFAvj%2Fuploads%2FoGoYU5YIwV7syDhq4IMc%2Fmetadata_formatting.png?alt=media&#x26;token=6fb9c474-622e-4ecc-acb1-ce724d0034ee" alt=""><figcaption><p>Use metadata formatting option</p></figcaption></figure>

To use this option, you need to define metric metadata like this and add it to detail on the marks cards.

<figure><img src="https://2268858626-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FxF3J9z75cLxrADGYFAvj%2Fuploads%2F6735jidPpbg3bZmdZDdW%2Fmetadata.png?alt=media&#x26;token=a968905f-ca2a-4423-bb37-f1f3535fd1c2" alt=""><figcaption><p>Required format for metadata</p></figcaption></figure>

Then simply map the metric attributes to the fields.

<figure><img src="https://2268858626-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FxF3J9z75cLxrADGYFAvj%2Fuploads%2FzkEhfrWYEFcWJBUi1KQ5%2Fmetadata_2.gif?alt=media&#x26;token=001b3c2b-a1fe-407e-b6cc-049d76519065" alt=""><figcaption><p>Metadata Formatting in Action</p></figcaption></figure>
