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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. 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
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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