Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

Is it possible to calculate the Count of text fields in a column in power bi

2024 Customer = CALCULATE(DISTINCTCOUNT(Table1[Group]),TREATAS({2024},Table1[Year]))
Lost 2024 = IF([2024 Customer]=0,"LOST")

enter image description here

I used the above measures to display lost customers as "LOST" in the table, I need to get the Count of "LOST". Does anyone have a solution for this?

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

>Solution :

I think you are asking how to count rows of a Measure value.

Try:

Lost count =
  SUMX(
    DISTINCT(Table1[Group]), 
    IF([Lost 2024] = "LOST", 1)
 ) 
Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading