Calculation Issues

How to Create Power Pivot DAX Measures for Conditional Amounts and Percentages

Aamir Naveed AkramAamir Naveed Akram Nov 13, 2026 869 views

Question details

The user needs Power Pivot DAX measures that return values conditionally and express each row as a percentage of a category total.

How to Create Power Pivot DAX Measures for Conditional Amounts and Percentages
Product
Microsoft Excel with Power Pivot add-in
Device & OS
not provided
Scenario
The user is building a Power Pivot model and wants to create conditional amount measures plus percentage-of-category-total measures for use in a PivotTable.
Observed behavior
The desired state is to have accurate conditional amount values and percentage totals that respond to the PivotTable filter context.
Before you start

Open the workbook in Microsoft Excel, enable the Power Pivot add-in, and confirm that the source table is loaded into the Data Model with the expected column names. Replace Table1 and the sample column names with your real table and column names.

Solution 1Recommended

Create a Conditional Amount Measure with SUMX and IF

Use this measure when an amount should be calculated only for rows that meet a condition, such as having a non-blank Actuals Allocated value.

This pattern multiplies the driver amount by 1 when the condition is true and by BLANK() when it is not, so non-qualifying rows do not contribute to the total.

1
Open the Power Pivot measure dialog

In Excel, open the Power Pivot window, select the table in the calculation area, and click New Measure on the Power Pivot or Data Model tab.

2
Define the Amount measure

In the Measure dialog, enter the name Amount, $ and the formula: SUMX(Table1, Table1[Driver Amount] * IF(ISBLANK(Table1[Actuals Allocated]), BLANK(), 1)). Set the number format to currency and click OK.

3
Verify the result in a PivotTable

Insert a PivotTable from the Data Model, add Category to Rows and the Amount, $ measure to Values, and confirm that only rows with Actuals Allocated show amounts.

Create a Conditional Amount Measure with SUMX and IF
Conditional amount pattern applied: The SUMX measure returns the conditional driver amount at row level and in totals.
Free Microsoft Office alternative

Use WPS Spreadsheets for Pivot Table Summaries and Percentage of Category Totals

Power Pivot DAX is a Microsoft Excel feature. WPS Office does not include Power Pivot, but WPS Spreadsheets is a free, lightweight Office alternative that opens .xlsx files and handles pivot table summaries, percentage calculations, and everyday spreadsheet work with a familiar ribbon interface.

  1. 1. Download WPS Office: Download WPS Office from the official WPS site and run the installer for your Windows or Mac device.
  2. 2. Open your Excel workbook: Launch WPS Spreadsheets and open the .xlsx file that contains your source data or PivotTable requirements.
  3. 3. Insert a PivotTable: Select the data range, go to the Insert tab, click PivotTable, and choose to place it in a new worksheet.
  4. 4. Show values as percentage: Add Category to Rows and the amount field to Values, then use Value Field Settings > Show Values As and select % of Column Total or % of Parent Row Total for category percentage views.
Calculate category percentages with pivot table Show Values As options or helper formulas without writing DAXOpen and save .xlsx files with Microsoft Excel format compatibilityFamiliar ribbon-based spreadsheet interface for easy migration from ExcelFree to use with a light footprint on Windows, macOS, Linux, Android, and iOS
microsoft office alternative - wps office

Frequently Asked Questions

Does WPS Office support Power Pivot or DAX measures?

No. Power Pivot and DAX are Microsoft Excel Data Model features. WPS Spreadsheets can open .xlsx files and create pivot tables, but it does not provide a Power Pivot window or DAX measure editor.

Can I use these DAX formulas in WPS Spreadsheets?

No, DAX formulas are not supported in WPS Spreadsheets. Use WPS pivot table percentage options, SUMIF/SUMIFS helper columns, or keep the DAX workbook in Microsoft Excel.

How do I calculate a percentage of category total in WPS Spreadsheets without DAX?

Select your PivotTable, open Value Field Settings, choose Show Values As, and select % of Column Total, % of Parent Total, or a similar option. Alternatively add a helper column with SUMIF and divide.

Which DAX functions are used for conditional amounts and percentage of total?

The typical pattern uses SUM or SUMX to aggregate, IF or ISBLANK to apply conditions, CALCULATE with ALL to remove a category filter, and DIVIDE to return a safe percentage.