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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
BrentCo
Frequent Visitor

Calculating the number of occurrences in a week

Hi All,

 

I have been going around in circles with this requirement, so any help is appreciated.

 

I need to be able to calculate the number of occurrences a record occurances during a week.  I know I can do a simple count, however I also need to be able to determine if the occurrence happens once a week, or twice or more in a week.

 

Sample Data:

BrentCo_0-1649225809172.png

 

From the above, I want to be able to show that in Week 1, Employee 1 had 2 occurrences, and Employee 2 had 1 occurrence and so on.

 

Ultimately, showing # employees having 1 occurrence in a week, # employees having more that 2 occurances.

 

Thanks

Brent

 

 

1 ACCEPTED SOLUTION
rbriga
Impactful Individual
Impactful Individual

Try:

Occurrences=
COUNTROWS(TABLE)

When you add Employeenumber and Week as fields in a visual, it would give you the weekly occurrences for those employees.

-------------------------
Data analyst by day, hockey goalie by night.
Did I help? Then please hit that "kudos" or "accept as a solution" button!

View solution in original post

2 REPLIES 2
rbriga
Impactful Individual
Impactful Individual

Try:

Occurrences=
COUNTROWS(TABLE)

When you add Employeenumber and Week as fields in a visual, it would give you the weekly occurrences for those employees.

-------------------------
Data analyst by day, hockey goalie by night.
Did I help? Then please hit that "kudos" or "accept as a solution" button!

Thanks so much.   Not sure why I didn't even think of that 😑

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.