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 all,
i have a base like below and need to create a measure with multiple filters intersection like this:
VAR
_first_filter all ID where Label = A and Value = 1
_second_filter all ID where Label = B and Value = 1
_third_filter all ID where Label = C and Value = 1
RESULT
and need to countrows of source from below with filters Label = C && all common ID between the 3 filter tables from above
Thanks in advance,
Cosmin
| ID | Label | Value | Client |
| 1 | A | 1 | cosmin |
| 1 | B | 1 | cosmin |
| 1 | C | 1 | cosmin |
| 2 | A | 0 | cosmin |
| 2 | B | 1 | cosmin |
| 2 | C | 1 | cosmin |
| 3 | A | 0 | cosmin |
| 3 | B | 1 | cosmin |
| 3 | C | 0 | cosmin |
| 4 | A | 1 | cosmin |
| 4 | B | 1 | cosmin |
| 4 | C | 0 | cosmin |
| 5 | A | 1 | cosmin |
| 5 | B | 0 | cosmin |
| 5 | C | 999 | cosmin |
| 1 | A | 1 | marius |
| 1 | B | 0 | marius |
| 1 | C | 1 | marius |
| 2 | A | 0 | marius |
| 2 | B | 1 | marius |
| 2 | C | 1 | marius |
| 3 | A | 0 | marius |
| 3 | B | 1 | marius |
| 3 | C | 0 | marius |
| 4 | A | 1 | marius |
| 4 | B | 0 | marius |
| 4 | C | 1 | marius |
| 5 | A | 0 | marius |
| 5 | B | 1 | marius |
| 5 | C | 0 | marius |
Solved! Go to Solution.
Hi @cosminc ,
Please refer to below measure:
Count_rows =
VAR temp_tab =
ADDCOLUMNS (
Sample4,
"Label number", CALCULATE (
DISTINCTCOUNT ( Sample4[Label] ),
ALLEXCEPT ( Sample4, Sample4[ID] ),
Sample4[Value] = 1
)
)
RETURN
COUNTROWS ( FILTER ( temp_tab, [Label number] = 3 && [Label] = "C" ) )
Best regards,
Yuliana Gu
Hi @cosminc ,
Please refer to below measure:
Count_rows =
VAR temp_tab =
ADDCOLUMNS (
Sample4,
"Label number", CALCULATE (
DISTINCTCOUNT ( Sample4[Label] ),
ALLEXCEPT ( Sample4, Sample4[ID] ),
Sample4[Value] = 1
)
)
RETURN
COUNTROWS ( FILTER ( temp_tab, [Label number] = 3 && [Label] = "C" ) )
Best regards,
Yuliana Gu
Perfect!
Thanks,
Cosmin
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 |
|---|---|
| 31 | |
| 26 | |
| 23 | |
| 22 | |
| 13 |
| User | Count |
|---|---|
| 61 | |
| 47 | |
| 27 | |
| 23 | |
| 18 |