Forum Discussion
Anonymous
4 years agoNot applicable
DAX - Discarding Null values
I have a following table, Network patID Status A 1 Approved A 1 Approved A Approved A 1 Approved A 2 Declined B 3 Approved B 4 Approved B Approved...
- 4 years ago
Hi Anonymous ,
I think you almost had it!
I just added the <> BLANK() filter to your code:
COUNT = CALCULATE( DISTINCTCOUNT ('TABLE'[patID]), FILTER ( ALL('TABLE'), 'TABLE'[Network] = EARLIER('TABLE'[Network]) && 'TABLE'[Status] = "Approved" && 'TABLE'[patID] <> BLANK() ) )Does this solve your issue? 🙂
/Tom
https://www.tackytech.blog/
https://www.instagram.com/tackytechtom/
tackytechtom
Most Valuable Professional
4 years agoHi Anonymous ,
I think you almost had it!
I just added the <> BLANK() filter to your code:
COUNT =
CALCULATE(
DISTINCTCOUNT ('TABLE'[patID]),
FILTER (
ALL('TABLE'),
'TABLE'[Network] = EARLIER('TABLE'[Network]) && 'TABLE'[Status] = "Approved" && 'TABLE'[patID] <> BLANK()
)
)
Does this solve your issue? 🙂
/Tom
https://www.tackytech.blog/
https://www.instagram.com/tackytechtom/