1
I have this table

enter image description here

which is a live connection from ssas to power BI I want to count duplicate based on typeName and wher completeDate is blank I wrote the folowing DAX

Duplicate = VAR Dup = COUNTROWS(FILTER('Table',EARLIER('Table'[typeName])='Table'[typeName]))
RETURN
         CALCULATE(Dup,
            FILTER('Table', 'Table'[CompletedDate]=BLANK()))

The current Output

enter image description here

which is wrong my desired output is to return where completeDate is blank

enter image description here

1 Answer 1

1

Variables are actually constants. Does this work?

    Duplicate = 
CALCULATE(
    COUNTROWS(
        FILTER('Table',
            EARLIER('Table'[typeName])='Table'[typeName]
            && 'Table'[CompletedDate]=BLANK()
        )
    )
)
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.