Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
I have a table like this.
Person | M1 | M2 | M3 | M4 |
Peter | 1 | 0 | 0 | 0 |
Jane | 0 | 0 | 0 | 0 |
Tom | 1 | 0 | 1 | 0 |
Mary | 1 | 1 | 1 | 0 |
I want to count rows when at least one of the M1, M2, M3, and M4 has value.
Solved! Go to Solution.
You can create a measure as follows:
PeopleCount = CALCULATE(
DISTINCTCOUNT(TableName[Person]),
FILTER(ALL(TableName), TableName[M1] + TableName[M2] + TableName[M3] + TableName[M4] >= 1)
)
BTW, I recently developed this Power BI Smartable android app
I appreciate it if you can try it and share any feedback.
You can create a measure as follows:
PeopleCount = CALCULATE(
DISTINCTCOUNT(TableName[Person]),
FILTER(ALL(TableName), TableName[M1] + TableName[M2] + TableName[M3] + TableName[M4] >= 1)
)
BTW, I recently developed this Power BI Smartable android app
I appreciate it if you can try it and share any feedback.
Check out the July 2025 Power BI update to learn about new features.
User | Count |
---|---|
23 | |
8 | |
7 | |
6 | |
6 |
User | Count |
---|---|
28 | |
12 | |
10 | |
10 | |
6 |