Forum Discussion
Count rows containing value
- 4 years ago
Hello,
I would suggest you to use DAX instead of Power Query for your need.
Example:
NumberOfTwo = CALCULATE( COUNT(PQPFocus[Vekt utenfor norm]), PQPFocus[Vekt utenfor norm] = 2 )Same thing for 5 etc.I hope this will answer your question.
Hello,
I would suggest you to use DAX instead of Power Query for your need.
Example:
NumberOfTwo = CALCULATE(
COUNT(PQPFocus[Vekt utenfor norm]),
PQPFocus[Vekt utenfor norm] = 2
)
I tried applying this calc to my issue, but it didn't work, can you tell me what i did wrong? Or maybe I'm using it wrong. I have a survey table (Form1) with column [Language]. I'm trying to create a visual table that contains a column for where the survey originated [Center], and then column English with the total of English language surveys submitted for that center, and again with a column for Spanish. I thought i could just create a measure to count the occurange of English and add that to my table but the calc below does not work. The rest of the calc is valid, but it doesnt recognize "english". Maybe if I transform it to a numeric value? Thanks so much for your help!