3 easy steps to make a KPI with a unit in Power BI

Shashanka Shekhar
Microsoft Power BI
Published in
4 min readFeb 8, 2024

--

Power BI is a platform that allows you to connect to various data sources, transform and model your data, and create interactive dashboards and reports. Power BI can help you gain insights from your data and communicate them effectively.

What is a KPI?

A KPI, or a key performance indicator, is a measurable target that shows how well an individual or a business is performing in terms of meeting their goals. KPIs can be financial, such as net profit or revenue, or nonfinancial, such as customer satisfaction or retention. KPIs help organizations track their progress, identify their strengths and weaknesses, and make informed decisions to improve their outcomes.

A snapshot of Electric Vehicles Dashboard in Power BI

Building the KPI

We will be making this KPI:

Here first we need to calculate the average of electric range of vehicles and then add unit miles at the end because without a unit it will be a plain value of 67.83 which won’t convey the necessary meaning of KPI.

1.DAX calculation for Avg Electric Range

Avg Range1 = AVERAGE(Electric_Vehicle_Population_Data[Electric Range])

We are simply calculating the Average of Electric Range column of Electric_Vehicle_Population_Data Table.

--

--

Shashanka Shekhar
Microsoft Power BI

Contributor for Microsoft Power BI. I like Data Analysis and Data Science. Also I enjoy sports, videogames and Japanese Anime in my free time.