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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
mp1994
New Member

Formula to Get Data based on specific day of week

I have a table (Name: Previous) that has the count of the total service tickets that have been opened. I am trying to get the data that shows how many service tickets were opened on a specific day for the past 4 weeks. Image of the table is below. 

For example I want the number of open tickets for the previous Thursday, 2 Thursday's ago, 3 Thursday's ago, and 4 Thursday's ago. 

 

mp1994_0-1633026142246.png

 

 

1 REPLY 1
mattww
Responsive Resident
Responsive Resident

Try creating a separate Date (or Calendar) table, relate that to your service ticket data. Then you will have a weekday field in the calendar table which can then be used in filters

To get started, here's a good guide Creating a simple date table in DAX - SQLBI

 

This table could also be built out to include other handy date calculations like weeks since today, etc.

 

If this post helps then please consider Accept it as the solution to help the other members find it more quickly.

 

Matt

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

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