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
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
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.

Top Solution Authors
Top Kudoed Authors