This document discusses key performance indicator (KPI) definition using WSO2 Business Activity Monitoring (BAM) 2.0. It provides an overview of BAM and the BAM 2.0 analytics design flow. It also presents two use cases - one for monitoring retail store performance and another for monitoring statistics across data centers and clusters. The document explains how to capture and analyze data, define indexes, create analyzer sequences, and design visualizations for these use cases in BAM 2.0.