Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Anonymous
Not applicable

Count distinct and then find max of the distinct count

Dear All,

 

I would like to count distinct emails for each day and then find the max of the distinctcount of each day.

How can I do that ? Below is an example.

Thank you.

SAMPLE TABLE:

q1.PNG

 

DISTINCT COUNT EMAILS 

q2.PNG

 

FINAL TABLE MAX OF DISTINCT COUNT

q3.PNG

3 ACCEPTED SOLUTIONS
Fowmy
Super User
Super User

@Anonymous 

Create the following measure and use with the date:

Max Count of Emails = 
MAXX(
    ADDCOLUMNS(
        VALUES(Table12[Email]),
        "mx", CALCULATE( COUNT(Table12[Email] ))
    ),
    [mx]
)

 

Did I answer your question? Mark my post as a solution! and hit thumbs up


Subscribe and learn Power BI from these videos

Website LinkedIn PBI User Group

View solution in original post

Fowmy
Super User
Super User

@Anonymous 

I am getting the same results you showed. insert a table visual and add date and the measure.

Fowmy_0-1622810372915.png

 

Did I answer your question? Mark my post as a solution! and hit thumbs up


Subscribe and learn Power BI from these videos

Website LinkedIn PBI User Group

View solution in original post

Anonymous
Not applicable

Actually I forgot to tell I have date slicer whenever I slice the date it should return one number and it should be 4 in this case I am sorry thank you 

View solution in original post

4 REPLIES 4
Fowmy
Super User
Super User

@Anonymous 

I am getting the same results you showed. insert a table visual and add date and the measure.

Fowmy_0-1622810372915.png

 

Did I answer your question? Mark my post as a solution! and hit thumbs up


Subscribe and learn Power BI from these videos

Website LinkedIn PBI User Group

Fowmy
Super User
Super User

@Anonymous 

Create the following measure and use with the date:

Max Count of Emails = 
MAXX(
    ADDCOLUMNS(
        VALUES(Table12[Email]),
        "mx", CALCULATE( COUNT(Table12[Email] ))
    ),
    [mx]
)

 

Did I answer your question? Mark my post as a solution! and hit thumbs up


Subscribe and learn Power BI from these videos

Website LinkedIn PBI User Group

Anonymous
Not applicable

Actually I forgot to tell I have date slicer whenever I slice the date it should return one number and it should be 4 in this case I am sorry thank you 

Anonymous
Not applicable

It is counting the rows I need max of count . Can you fix that please? Thank you.

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors