Forum Discussion
Anonymous
2 years agoNot applicable
Count distinct values based on another column meeting a specific condition
Hello experts, I am new on the forum and a newbie at PowerBi. So far I have managed to find answers to many of my questions through Google leading me here but I have been stuck trying stuff for t...
- 2 years ago
You are absolutely correct Anonymous I missed that bit sorry.
Here you go:
Improved unique assid only =COUNTX(Distinct(SELECTCOLUMNs( Filter('Ass Table',[Post-test score] > [Pre-test score]),"AssId",[Assessment ID])),[AssId])
Anonymous
2 years agoNot applicable
Thanks so much for your quick response.
However, I am unsure if the formula counts the unique assessment ID. Is it not counting the questions that have improved? In your screenshot I see the same assessment ID twice.
Thanks,
Susan
- SamWiseOwl2 years ago
Super User
You are absolutely correct Anonymous I missed that bit sorry.
Here you go:
Improved unique assid only =COUNTX(Distinct(SELECTCOLUMNs( Filter('Ass Table',[Post-test score] > [Pre-test score]),"AssId",[Assessment ID])),[AssId])