March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
Hello,
I have a table resembling the below. Being rather new to PowerBI, I am attempting to figure out the viz I am looking for.
The requirement of the vis is that it has one column identifying the number of unique clientID (count distinct, pretty easy). But, in addition to that I want to sum up the number of household members for each unique ID where the value to sum on would be the maximum # of household members for each unique client. ID. Not sure how to do this and would appreciate any input. Max household members for each ClientID is of red color.
Table | |
ClientID | HouseholdMembers |
1 | 1 |
1 | 2 |
1 | 3 |
2 | 1 |
2 | 1 |
2 | 1 |
3 | 1 |
3 | 2 |
Expected Results | |
Unique Clients | Household members of Unique Clients |
3 | 6 |
Solved! Go to Solution.
Try these measures:
Unique Clients = DISTINCTCOUNT ( Table1[ClientID] )
Household Members of Unique Clients =
SUMX (
VALUES ( Table1[ClientID] ),
CALCULATE ( MAX ( Table1[HouseholdMembers] ) )
)
Proud to be a Super User!
Try these measures:
Unique Clients = DISTINCTCOUNT ( Table1[ClientID] )
Household Members of Unique Clients =
SUMX (
VALUES ( Table1[ClientID] ),
CALCULATE ( MAX ( Table1[HouseholdMembers] ) )
)
Proud to be a Super User!
Thank you very much !!
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
124 | |
89 | |
84 | |
70 | |
51 |
User | Count |
---|---|
206 | |
143 | |
97 | |
79 | |
68 |