Ravindra BagaleCourses & study guides मराठी Track your progress

22. KPI in All Industries

Excel

22.9 Pharma

Field-force interviews ask whether a visit became an order, and whether stock will expire. A day of doctor visits with no order is a vanity metric. Names below are the class list. This is not a company's secondary-sales audit.

KPI What the number means Who uses it Action it drives
Order conversion Orders divided by doctor visits. Area manager A low rate means the call list or the stock, not "do more calls".
Expiry % Expired stock value divided by stock value. Stockist and the manager High expiry stops the next dispatch to that city.
Secondary sales Sales value to pharmacies in the period, in ₹. Area manager Read it with expiry. Sales that sit and expire were not demand.

About this data: The KPIs in this Pharma lesson are worked out from a fictional pharma field force with six medical representatives in Pune, Nashik, Kolhapur, Nagpur, Solapur and Sambhaji Nagar. The figures are made up for this lesson and do not come from any real company or person.

Fictional sample rows. One month. Type these rows into a new sheet from cell A1, press Ctrl + T, and name the table tblPharma (Table Design › Table Name).

MR City Visits Orders Secondary sales Expired Stock value
Kabir Pune 40 16 ₹80,000 ₹2,000 ₹40,000
Tara Nashik 24 12 ₹60,000 ₹500 ₹30,000
Raja Kolhapur 50 5 ₹15,000 ₹4,000 ₹20,000
Rani Nagpur 30 12 ₹48,000 ₹1,000 ₹25,000
Amir Solapur 20 10 ₹40,000 ₹0 ₹15,000
Zoya Sambhaji Nagar 36 6 ₹18,000 ₹3,000 ₹18,000

About this data: The tblPharma table has one row per medical representative and the columns MR, City, Visits, Orders, Secondary sales, Expired and Stock value. The names in the MR column are the class list, not real employees. The figures are made up for this lesson and do not come from any real company or person.

Excel formulas for the whole file (type them in empty cells below or beside the table):

KPI Excel formula Result Number format
Order conversion =SUM(tblPharma[Orders])/SUM(tblPharma[Visits]) 30.5% 0.0%
Expiry % =SUM(tblPharma[Expired])/SUM(tblPharma[Stock value]) 7.1% 0.0%

About this data: Each formula above reads whole columns of the tblPharma table. The money columns (Secondary sales, Expired and Stock value) are in rupees, so format them with ₹ and keep the other columns as plain numbers. The figures are made up for this lesson and do not come from any real company or person.

Calculated columns (one result per row). Click the first empty column of the table, type the header, then the formula. The Table fills every row by itself.

New column Formula in the first row
Order conversion =[@Orders]/[@Visits]
Expiry % =[@Expired]/[@[Stock value]]

About this data: The calculated columns use the same six fictional rows of the tblPharma table, so you can change any number and watch each row's result update. The figures are made up for this lesson and do not come from any real company or person.

Expected result per row:

MR Order conversion Expiry %
Kabir 40.0% 5.0%
Tara 50.0% 1.7%
Raja 10.0% 20.0%
Rani 40.0% 4.0%
Amir 50.0% 0.0%
Zoya 16.7% 16.7%

About this data: These results are worked out from the six fictional medical representatives in the tblPharma table above. They do not describe any real company or person.

One city with SUMIFS. Order conversion for Pune only:

=SUMIFS(tblPharma[Orders],tblPharma[City],"Pune")/SUMIFS(tblPharma[Visits],tblPharma[City],"Pune")

Result for Pune: 40.0%. Change "Pune" to a cell reference (for example $K$1) and add a drop-down, and the same formula answers for any city.

Good KPI Vanity metric
From the same rows Raja's conversion 10.0% and expiry 20.0% Raja's 50 visits
Why Five orders from fifty visits, and one fifth of the stock value expired. The visit card makes Kolhapur look like the hardest-working city.

About this data: The good KPI and the vanity metric both come from the same fictional rows of the tblPharma table, so the comparison is fair. The figures are made up for this lesson and do not come from any real company or person.

What the manager does. The Nashik manager keeps Tara's list (half the visits became orders). The Pune manager looks at Kabir's expiry of ₹2,000 on ₹40,000 stock (5.0%) before sending the next carton. The Kolhapur manager stops ranking MRs by visits. Zoya's expiry is 3,000 ÷ 18,000 = 16.7%. Same action: no fresh stock until the expired batch is written off in the practice file.

Practice workbook and guide: Pharma dashboard workbook (Excel) · How to build the Pharma dashboard in Excel. The workbook data is also fictional.

Ravindra Bagale's Tip

Primary sales (company to stockist) and secondary sales (stockist to chemist) must never share one column. Ask which one the file has before you build a formula.

Practice tasks (6)

Use the tblPharma table from this lesson (6 fictional rows). Open a hint only if you are stuck, and check your result against the answer.

1. Write one formula that works out Expiry % for the whole tblPharma table, and give it the number format 0.0%.

Hint: Read whole columns of the Table by name, such as tblPharma[Visits], so new rows are included.

Answer: =SUM(tblPharma[Expired])/SUM(tblPharma[Stock value]) gives 7.1%.

2. Work out Expiry % for every MR except Kabir.

Hint: Use SUMIFS with the condition tblPharma[MR] not equal to "Kabir", written as "<>Kabir".

Answer: =SUMIFS(tblPharma[Expired],tblPharma[MR],"<>Kabir")/SUMIFS(tblPharma[Stock value],tblPharma[MR],"<>Kabir") gives 7.9%.

3. Add a calculated column Expiry % to the Table. Which MR has the highest Expiry %?

Hint: Type the header in the first empty column, then the formula using [@column] references. The Table fills every row.

Answer: Raja, with 20.0%.

4. Which MR has the lowest Order conversion?

Hint: Add Order conversion as a calculated column, then sort that column from smallest to largest.

Answer: Raja, with 10.0%.

5. What if Orders for Raja changes from 5 to 6? Work out the new whole-table Order conversion.

Hint: Type the new value in the Table. Formulas that read whole columns update by themselves.

Answer: Order conversion changes from 30.5% to 31.0%.

6. How many MRs have Expiry % above the whole-table Expiry %?

Hint: Compare each row of the Expiry % column with the whole-table result, 7.1%.

Answer: 2: Raja, Zoya.

Loading practice tasks...

  1. Total Visits (Easy): Add up the "Visits" column to get one total for all six medical representatives.
  2. Average Secondary sales (Easy): Work out the average of the "Secondary sales" column (in rupees) across the six medical representatives.
  3. Medical representatives with more than 10 Orders (Easy): Count how many medical representatives have more than 10 in the "Orders" column.
  4. Largest Orders (Easy): Find the largest value in the "Orders" column.
  5. Visits where Orders is more than 10 (Medium): Add up the "Visits" column only for the medical representatives that have more than 10 in the "Orders" column.
  6. Order conversion for all medical representatives (Medium): Work out the Order conversion for all six medical representatives. It is the total of "Orders" divided by the total of "Visits". Round the answer to 3 decimal places, so 0.125 means 12.5%.
  7. Look up Rani (Medium): Find the "Secondary sales" value for MR "Rani".
  8. Smallest Secondary sales (Medium): Find the smallest value in the "Secondary sales" column.
  9. Order conversion for Kabir (Medium): Work out the Order conversion for MR "Kabir", using only the values in that one row. Round the answer to 3 decimal places, so 0.125 means 12.5%.
  10. Expiry % for all medical representatives (Hard): Work out the Expiry % for all six medical representatives. It is the total of "Expired" divided by the total of "Stock value". Round the answer to 3 decimal places, so 0.125 means 12.5%.
  11. Share of Visits from Kabir (Hard): Work out what share of the total "Visits" comes from MR "Kabir". Round the answer to 3 decimal places, so 0.125 means 12.5%.
  12. Above or below average (Hard): Show "Above" if the "Orders" value for MR "Kabir" is more than the average of the "Orders" column, and show "Below" if it is not.