This is best Fabric, Power BI, SQL and AI community event. How do we know? The last event sold out! Save €200 with code FABCMTY200.
Register nowA new Data Days event is coming soon! This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. Don't miss out.
Hi community!
I have the following table:
| subject number | quartile | symptom improvement |
| 1 | Q1 | no |
| 2 | Q1 | no |
| 3 | Q1 | no |
| 4 | Q1 | yes |
| 1 | Q2 | no |
| 2 | Q2 | yes |
| 3 | Q2 | no |
| 4 | Q2 | yes |
Now I would like to visualise the number of subjects that did not have symptoms improvement in Q1 (which would be 3 in this example; subject 1,2,3), and how many of these do have symptom improvement in Q2 (which would be 1 in this example; subject 2). What's the best approach to do this?
thanks!
Solved! Go to Solution.
Hi @im_92 ,
We can create two measures to meet your requirement.
Q1 no =
CALCULATE(COUNT('Table'[symptom improvement]),FILTER('Table','Table'[quartile] = "Q1" && 'Table'[symptom improvement] = "no"))
Q2 improvement =
var _Q2_no =
CALCULATE(COUNT('Table'[symptom improvement]),FILTER('Table','Table'[quartile] = "Q2" && 'Table'[symptom improvement] = "no"))
return
[Q1 no] - _Q2_no
If it doesn’t meet your requirement, could you please show the exact expected result based on the table that you have shared?
BTW, pbix as attached.
Best regards,
Community Support Team _ zhenbw
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @im_92 ,
How about the result after you follow the suggestions mentioned in my original post?
Could you please provide more details or expected result about it If it doesn't meet your requirement?
Best regards,
Community Support Team _ zhenbw
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @im_92 ,
We can create two measures to meet your requirement.
Q1 no =
CALCULATE(COUNT('Table'[symptom improvement]),FILTER('Table','Table'[quartile] = "Q1" && 'Table'[symptom improvement] = "no"))
Q2 improvement =
var _Q2_no =
CALCULATE(COUNT('Table'[symptom improvement]),FILTER('Table','Table'[quartile] = "Q2" && 'Table'[symptom improvement] = "no"))
return
[Q1 no] - _Q2_no
If it doesn’t meet your requirement, could you please show the exact expected result based on the table that you have shared?
BTW, pbix as attached.
Best regards,
Community Support Team _ zhenbw
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @im_92
try a measure
Measure =
var _q2 = SELECTCOLUMNS(FILTER('Table', 'Table'[symptom improvement] = "no" && 'Table'[quartile] = "q1"), "subject", [subject number])
var _q1 = SELECTCOLUMNS(FILTER('Table', 'Table'[symptom improvement] = "yes" && 'Table'[quartile] = "q2"), "subject", [subject number])
RETURN
COUNTROWS(INTERSECT(_q1, _q2))
Check out the May 2026 Power BI update to learn about new features.
Sign up to receive a private message when registration opens and key events begin.
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 |
|---|---|
| 26 | |
| 24 | |
| 22 | |
| 19 | |
| 17 |
| User | Count |
|---|---|
| 42 | |
| 42 | |
| 41 | |
| 21 | |
| 20 |