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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
lab
Frequent Visitor

DistinctCount by month

I have a table and would like to see distinctcount of employee ID's by month.  I tried DistinctCount but it gave me the same values across all months.

 

NameEmp IDDeptSubOT hoursMonth
Employee 1234AA14Jan
Employee 2235BA28Feb
Employee 3236CA39Mar
Employee 1234AA112April
Employee 2235BA210Mar
Employee 3236CA311Feb
Employee 1234AA11Mar
Employee 2235BA22April
Employee 3236CA33Mar
Employee 4237DA43Jan
Employee 1234AA13Feb
Employee 2235BA22Mar
Employee 3236CA31April
Employee 4237DA41Jan
1 ACCEPTED SOLUTION
vojtechsima
Super User
Super User

Hi, @lab 
Simply create a visual where you put months and ID of employes as DistincCount.

vojtechsima_0-1650909755197.png

vojtechsima_1-1650909763844.png

 






Any kudos or recognition appreciated. To learn more on the topic, check out my blog and follow me on LinkedIn.

View solution in original post

1 REPLY 1
vojtechsima
Super User
Super User

Hi, @lab 
Simply create a visual where you put months and ID of employes as DistincCount.

vojtechsima_0-1650909755197.png

vojtechsima_1-1650909763844.png

 






Any kudos or recognition appreciated. To learn more on the topic, check out my blog and follow me on LinkedIn.

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.