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

Be 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

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
Resident Rockstar
Resident Rockstar

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
Resident Rockstar
Resident Rockstar

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!

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

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