0

I am new to Power BI - DAX functions.

I have three columns in a table with text in it and I have added a fourth column where I want the count of these three but when I use COUNTA, COUNTX or COUNTAX measure I am getting the count of the entire column.

COUNTA
COUNTAX
COUNTX

Column = COUNTX(Table1, Table1[First_Amendment])
           + COUNTX(Table1, Table1[Second_Amendment])
           + COUNTX(Table1, Table1[Third_Amendment])

Suppose column A, B, C contains three names, apple, mango, oranges respectively so in fourth column I should get count as 3.

1
  • In what cases would you not get 3? Are some of the rows blank? Commented Jan 2, 2019 at 18:57

1 Answer 1

0

Did you want to count no blank column based on row, right?

If so, you could try to use calculated column like below

Column = if((countaa[a])="",0,1)+if((countaa[b])="",0,1)+if((countaa[c])="",0,1)

enter image description here

You also could refer to this post for details.

Zoe

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.