KPI tile for Power Apps canvas apps
A KPI tile shows one figure, a title and the change against a period. The delta is colored by whether the change is favourable, so a falling ticket count can show green.
Requirements
- License: Standard. No premium connector, no PCF, no environment setting.
- Power Apps Studio with modern controls enabled in the app settings
- A canvas app or a component library
Properties
| Property | Type | Notes |
|---|---|---|
Title | Text | Caption above the figure |
Metric | Text | Main figure, formatted as text |
Delta | Number | Change in percent, the sign decides the arrow |
DeltaCaption | Text | Comparison period |
HigherIsBetter | Boolean | Set to false when a decrease is good |
IsFavourable | Boolean (output) | True when the delta moves in the wanted direction |
Download
kpi-tile.zip holds the component, a demo screen, the property list and the MIT license. The same files one by one:
KpiTile.pa.yaml, the component definitionDemoKpiTile.pa.yaml, a demo screen with sample dataREADME.md, properties, setup and limitsLICENSE.txt, the MIT license
Setup
- Open your canvas app (or component library) in Power Apps Studio.
- Create a component named KpiTile and paste the content of KpiTile.pa.yaml from the download above.
- Insert an instance on a screen and set its input properties, using the demo screen as a guide.
- Resize the instance with its Width and Height.
Known limits
- Components cannot be placed inside a gallery. Use one instance per tile.
- The figure is plain text, so format numbers before you pass them in.
License
MIT, copyright Marcel Lehmann. Use it in private and commercial apps and change it. Keep the license text with the files you pass on, an attribution inside the app is not needed. See LICENSE.txt.