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
jmigner
Regular Visitor

How to count the number of each day of week within a certain date range?

Hello!

 

I have a table which has the dat range for my database and the day-of-week for each date. In my report, I want a formula which counts the number of each day of the week (e.g. 5 Monday's in May 2017) based on the date filter applied. I have tried a few different count formulas and they have not been working. Any ideas?

 

Thanks,

Julia

1 ACCEPTED SOLUTION
GilbertQ
Super User
Super User

Hi @jmigner

 

You could just do a COUNTROWS for your date table, and then when you select each month, it would then just count the number of days when you put the Day Name into a table?

 

Here is an example below.

 

A-PBI Community.png

 





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!







Power BI Blog

View solution in original post

1 REPLY 1
GilbertQ
Super User
Super User

Hi @jmigner

 

You could just do a COUNTROWS for your date table, and then when you select each month, it would then just count the number of days when you put the Day Name into a table?

 

Here is an example below.

 

A-PBI Community.png

 





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!







Power BI Blog

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.