Nesting an OR criteria in a simple dax COUNTA

Guitarmageddon

Board Regular
Joined
Dec 22, 2014
Messages
161
Hey folks, super simple one here but Im slipping up somewhere.

I had originally thought I wanted to COUNTA based on counting all the values of "NEW" in my field labeled [ACTION]. However I need to count all the values of NEW or OPEN.

How do I modify the original to include both those criteria?
=CALCULATE(COUNTA('REPORT'[ACTION]),'REPORT'[ACTION]="NEW")

I tried nesting them inside one large OR function, but that just returned true/false values and messed with the context of my pivot table.

For example:
=OR(CALCULATE(COUNTA('REPORT'[ACTION]),'REPORT'[ACTION]="NEW"),CALCULATE(COUNTA('REPORT'[ACTION]),'REPORT'[ACTION]="OPEN"))

Im thinking I should be able to use the OR operator of " || " somewhere in the original cant I?
 
Last edited:

Excel Facts

Select a hidden cell
Somehide hide payroll data in column G? Press F5. Type G1. Enter. Look in formula bar while you arrow down through G.

Forum statistics

Threads
1,223,669
Messages
6,173,700
Members
452,527
Latest member
ineedexcelhelptoday

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top