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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

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

 

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

 

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.