This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. We're covering it all. You won't want to miss it.
Learn moreDid you hear? There's a new SQL AI Developer certification (DP-800). Start preparing now and be one of the first to get certified. Register now
Hello dear Power BI-Community
Following problem to solve:
Let's assume this table
You can imagine this would be a satisfaction survey.
The participant can say "yes" i was happy, "no" i was not happy, or make no statement "not answered"
If not satisfied (Answer = no), the participant gives a reason why.
| Question | Answer | Reason |
| A | Yes | - |
| B | No | Because it was stressful |
| B | No | Because it was hot |
| C | Not answered | - |
| D | Not answered | - |
The goal is now to calculate the sum of all answered questions
Unfortunately, with this data structure, it is not possible to simply add up the number of "answers" with Yes and No -> Result would be 3, which is wrong
The correct number would be 2 (namely, questions A & B were answered (question B simply justified twice)
Any idea how to solve this?
Thank you very much for your contribution.
Cheers
qwertzuiop
Solved! Go to Solution.
pls try this
Measure = CALCULATE(DISTINCTCOUNT('Table'[Question]),FILTER('Table','Table'[Answer] = "Yes" || 'Table'[Answer]="No"))
Proud to be a Super User!
pls try this
Measure = CALCULATE(DISTINCTCOUNT('Table'[Question]),FILTER('Table','Table'[Answer] = "Yes" || 'Table'[Answer]="No"))
Proud to be a Super User!
Check out the April 2026 Power BI update to learn about new features.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
| User | Count |
|---|---|
| 37 | |
| 37 | |
| 31 | |
| 21 | |
| 16 |
| User | Count |
|---|---|
| 66 | |
| 56 | |
| 31 | |
| 26 | |
| 23 |