cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
konijay
New Member

total count of member with more than X number of UNIQUE case ID

Member      case ID
jim                 a1
jim                 a1
jim                 a1
jim                 a2
jim                 a3
bob               b1
bob               b1
bob               b2
sam               c1
sam               c2
sam               c3

 

Hello Experts

I'd like a measure that will show

 

Total number of members with 3 and up UNIQUE case IDs, in this case = 2 (jim and sam)

 

thank you

 

 

1 ACCEPTED SOLUTION
FreemanZ
Community Champion
Community Champion

hi @konijay 

try like:

Measure = 
VAR _table = 
ADDCOLUMNS(
    VALUES(TableName[Member]),
    "Count",
    CALCULATE(DISTINCTCOUNT(TableName[Case ID]))
)
RETURN
COUNTROWS(
    FILTER(_table, [Count]>=3)
)

View solution in original post

2 REPLIES 2
FreemanZ
Community Champion
Community Champion

hi @konijay 

try like:

Measure = 
VAR _table = 
ADDCOLUMNS(
    VALUES(TableName[Member]),
    "Count",
    CALCULATE(DISTINCTCOUNT(TableName[Case ID]))
)
RETURN
COUNTROWS(
    FILTER(_table, [Count]>=3)
)

LOVE U!

Helpful resources

Announcements
Vote for T-Shirt Design

Power BI T-Shirt Design Challenge 2023

Vote for your favorite t-shirt design now through March 28.

March 2023 Update3

Power BI March 2023 Update

Find out more about the March 2023 update.

March Events 2023A

March 2023 Events

Find out more about the online and in person events happening in March!