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

Score big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount

Reply

Beginner needs help creating Matrix or Table Showing Previous Week Tickets vs Current Week

Hi;

 

I need help creating either a table or a matrix that looks something like the example below. Where i am able to show how many tickets I had in the previous week (weekdays only / Networkdays). The total tickets during the current week, another calculation that will tell me how many tickets (using ticket id for lookupvalue) on the current week have been carried over from the previous week and finally the delta between the recurring tickes vs the current week tickets.

 

 

Weekdays onlyTotal Tickets Last WeekTotal Tickets Current WeekRecurring Tickets (tickets in current week that were also present is last week)New Tickets (Tickets that came in during current week)
Mon22027587188
Tue317291155136
Wed285313117196
Thu413367201166
Fri397425135290

 

By the way, I already have meassures that get me data for the first 3 columns (left to right); but i can't figure out how to get the meassure for the recurring tickets column data. The Delta column I am sure i can figure out (I think).

 

Thanks so much in advance for the help!

 

Mauricio

1 ACCEPTED SOLUTION

Hi,

In the filter section, i have chosen the current week offset as 0.  I then wriote this measure

=Measure = CALCULATE([Total Tickets],FILTER(VALUES(Data[Ticket ID]),[Previous_Week_Tickets]>0&&[Current_Week_Tickets]>0))

I get a blank for all days.  For Friday of the current week, there are no id's that existed on the Friday of the previous week so blank is the correct answer.  I have not checked for the other days.

Ashish_Mathur_0-1699753992667.png

 


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

View solution in original post

8 REPLIES 8
Ashish_Mathur
Super User
Super User

Hi,

So would it be correct to say that 220 ticket were sold on Monday of the previous week?  Do you have

  1. A Date column in the Data Table; and
  2. A calendar Table; and
  3. A week number column in the Calendar Table

Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Hi @Ashish_Mathur 

 

The tickets columns actually refer to "open/active" service tickets in previous and current weeks respectively. I need a calculated column or measure that gives me the total of active tickets from last week that are still open in current week (as part of the 275 tickets in current week).

 

To answer your questions 1, 2 and 3; the answer is yes! I have all of them.

 

Thanks so much for the support!

 

Mauricio 

Share the download link of the PBI file.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Hi @Ashish_Mathur 

 

Good Day!

 

This is the link for you to download the sample data PBI file.

 

PBI Sample Files

 

https://1drv.ms/f/s!AsN51lqO15IAgZV_XWkFsZyJ4EOH-w?e=l9BBb8

 

Thanks again for all the help!

 

Hi,

In the filter section, i have chosen the current week offset as 0.  I then wriote this measure

=Measure = CALCULATE([Total Tickets],FILTER(VALUES(Data[Ticket ID]),[Previous_Week_Tickets]>0&&[Current_Week_Tickets]>0))

I get a blank for all days.  For Friday of the current week, there are no id's that existed on the Friday of the previous week so blank is the correct answer.  I have not checked for the other days.

Ashish_Mathur_0-1699753992667.png

 


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Hi @Ashish_Mathur 

 

Thanks so much for the help!... This worked as expected. I can't thank you enough!

 

The reason why you were getting blanks for all days is actually beacause when I created the mocked up data, I completely forgot to include some the same Ticket ID numbers from the previous week into the current week. However; once I tried your solution in the actual data; things worked perfectly!

 

Thanks Again!

 

Regards,

 

Mauricio

You are welcome.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Hi again @Ashish_Mathur 

 

Due to company policy I cannot share the file. I will prepare some mocked up data file and share it tomorrow. I am located in Central America and it is already late... plus I am away from my computer. 

 

Thanks 

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.