Isblank, calculate, distinctcount, filter issue

Craigc3814

Board Regular
Joined
Mar 7, 2016
Messages
217
I am working on this formula (sorry for the format). I need the ability to count multiple P6Projects[TASKNAME] I am pretty sure I need to incorporate Filter into the measure but I am unsure of how to do so, does it come after the (DISTINCTCOUNT('P6Projects'[PROJECTID])

I need to count a task name called Operational ready, and WWIP Operation Ready as well as Construction Substantial Completion. This whole measure is due to the fact hat if I just use filters on the page blank returns rather than 0

SC count = if(isblank(CALCULATE(DISTINCTCOUNT('P6Projects'[PROJECTID]),'P6Projects'[TASKNAME]="Construction Substantial Completion")),0,CALCULATE(DISTINCTCOUNT('P6Projects'[PROJECTID]),'P6Projects'[TASKNAME]="Construction Substantial Completion"))
 

Excel Facts

How to show all formulas in Excel?
Press Ctrl+` to show all formulas. Press it again to toggle back to numbers. The grave accent is often under the tilde on US keyboards.
I am working on this formula (sorry for the format). I need the ability to count multiple P6Projects[TASKNAME] I am pretty sure I need to incorporate Filter into the measure but I am unsure of how to do so, does it come after the (DISTINCTCOUNT('P6Projects'[PROJECTID])

I need to count a task name called Operational ready, and WWIP Operation Ready as well as Construction Substantial Completion. This whole measure is due to the fact hat if I just use filters on the page blank returns rather than 0

SC count = if(isblank(CALCULATE(DISTINCTCOUNT('P6Projects'[PROJECTID]),'P6Projects'[TASKNAME]="Construction Substantial Completion")),0,CALCULATE(DISTINCTCOUNT('P6Projects'[PROJECTID]),'P6Projects'[TASKNAME]="Construction Substantial Completion"))
Got it figured out if anyone every runs into the same issue

if(isblank(CALCULATE(DISTINCTCOUNT('P6Projects'[PROJECTID]), Filter(ALL(P6Projects),P6Projects[TASKNAME] = "WWIP SC - Operational Ready/Beneficial Use"&& P6Projects[TASKNAME] = "Operational Ready/Beneficial Use"))),0,CALCULATE(DISTINCTCOUNT('P6Projects'[PROJECTID]), Filter(ALL(P6Projects),P6Projects[TASKNAME] = "WWIP SC - Operational Ready/Beneficial Use"&& P6Projects[TASKNAME] = "Operational Ready/Beneficial Use")))
 
Upvote 0

Forum statistics

Threads
1,223,681
Messages
6,173,815
Members
452,535
Latest member
berdex

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