Others

How to Create a DAX Measure in Excel Power Pivot to Count Names with Multiple Certifications

Emma BrownEmma Brown Nov 13, 2026 869 views

Question details

The user needs an efficient DAX measure that counts names only when they have more than one distinct certification and wants a meaningful total row.

How to Create a DAX Measure in Excel Power Pivot to Count Names with Multiple Certifications
Product
Microsoft Excel Power Pivot (Data Model)
Device & OS
not provided
Scenario
The user is analyzing a certification table that has Name and Certification columns, such as a training or compliance register.
Observed behavior
A standard distinct count or simple filter can count the same name multiple times or show an incorrect grand total.
Before you start

Load the certification table into the Excel Data Model (Power Pivot), name the table Table1, and confirm the Name and Certification columns do not contain blanks in the rows to be counted. Ensure the Power Pivot add-in is enabled in Excel before creating measures.

Solution 1Recommended

Create the Base DAX Measure for Names with More Than One Distinct Certification

Use this measure first when you need the row-level count of names that have more than one distinct certification in the current filter context.

The base measure works by iterating over the distinct Name values, then using CALCULATE and ALL(Table1[Certification]) to ignore the certification filter and count how many distinct rows or certifications belong to each name. Only names with a count greater than 1 are kept.

For pivot table totals, pair this measure with the companion total measure in the next solution.

1
Open the Power Pivot Data Model

In Microsoft Excel, go to the Data tab and click Manage Data Model to open the Power Pivot window.

2
Select the certification table

In the Power Pivot window, click the table that contains the Name and Certification columns, for example Table1.

3
Create the Available measure

On the Home or Design tab, click New Measure, enter Available as the measure name, and paste the following DAX formula: Available := COUNTROWS(FILTER(VALUES(Table1[Name]), CALCULATE(COUNTROWS(DISTINCT(Table1)), ALL(Table1[Certification])) > 1))

4
Save and add the measure to a PivotTable

Click OK to save the measure, then create a PivotTable from the Data Model and add Available to the Values area.

5
Check row-level results

Confirm that each visible row shows the count of names that satisfy the multiple-certification condition for the current filter context.

Create the Base DAX Measure for Names with More Than One Distinct Certification
DAX measures require the Data Model: Create and edit this measure in Power Pivot, not in a normal worksheet cell. A standard Excel formula cannot evaluate DAX functions such as CALCULATE or HASONEVALUE.
Free Microsoft Office alternative

Need a Free Alternative for DAX-Specific Excel Tasks? Try WPS Office

Because DAX measures for counting multiple certifications are created in Microsoft Excel's Power Pivot Data Model, WPS Office does not provide a DAX editor for this task. WPS Office is a free, lightweight Office alternative that opens .xlsx files, preserves Excel-compatible formatting and formulas where supported, and includes familiar spreadsheet and pivot table tools for daily analysis.

  1. 1. Download WPS Office: Go to the official WPS Office download page and download the free installer for Windows, macOS, iOS, or Android.
  2. 2. Install and open WPS Spreadsheets: Install WPS Office, then open WPS Spreadsheets from the WPS Office home screen.
  3. 3. Open your Excel workbook: Use File > Open to open the .xlsx workbook containing your certification data and view or edit it.
  4. 4. Use built-in spreadsheet tools: Use WPS Spreadsheets for compatible formulas, pivot tables, charts, and sharing; for DAX-specific Power Pivot measures, use Microsoft Excel.
Opens and edits Microsoft Excel .xlsx workbooks with familiar formatting and formulas where supported.Free and lightweight alternative to Microsoft Office for everyday spreadsheet and document work.Includes pivot tables and common Excel-compatible functions without the heavy Power Pivot setup.Familiar ribbon interface makes migration from Microsoft Office easy.Complete Office suite includes WPS Spreadsheets, Writer, and Presentation.
microsoft office alternative - wps office

Frequently Asked Questions

Can I create DAX measures in WPS Office Spreadsheets?

No. DAX measures such as COUNTROWS, FILTER, CALCULATE, HASONEVALUE and SUMX are created and edited in the Microsoft Excel Power Pivot Data Model. WPS Office can open the workbook, but it does not provide a DAX editor to create or modify Power Pivot measures.

Why does the base measure show a different total than the sum of the visible rows?

The base Available measure is evaluated in the current certification filter context. Use the Total Available measure with HASONEVALUE and SUMX over VALUES(Table1[Certification]) so the grand total sums the visible row-level values.

Where do I enter the DAX formula in Excel?

In Excel, enable the Power Pivot add-in if needed, then go to Data > Manage Data Model. In the Power Pivot window, select the table, click New Measure on the Home or Design tab, and paste the formula into the formula box.

Can I count names with multiple distinct certifications without using DAX?

Yes. You can add a helper column that concatenates Name and Certification, then use COUNTIF or COUNTIFS on that key to flag names that occur with multiple certification values, or use PivotTable filters. A DAX measure is more flexible when the data is refreshed or filtered.