Join us for an expert-led overview of the tools and concepts you'll need to pass exam PL-300. The first session starts on June 11th. See you there!
Get registeredPower BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.
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.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
19 | |
14 | |
13 | |
11 | |
8 |