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

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.

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
September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors