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
AsherB
New Member

Ticket Backlog

Hi,

 

I'm pretty new to Power Bi and learning a lot from answers given here.

I'm trying to create a ticket backlog.

 

Following are the relevant columns:

Table: 'case-export'

Case #

Created(creation date)

Resolved

'Case Custom Field 11 (Severity )'(I can also add it later as a filter, I believe it will be more simple)

 

Table: 'Calander'

Date

Month

 

The result I'm interested in is a backlog showing for each week, how many tickets were open("created" but not "resolved") and if possible by severity.

 

For example:

For week 34, we had 12 open tickets with "General" severity, 10 "minor", 5 "Major", 2 "Critical"

Just to show the trend we can use every Sunday as a week marker.

 

Thanks in advance,

Asher

6 REPLIES 6
v-qiuyu-msft
Community Support
Community Support

Hi @AsherB,

 

Please Create a calculated column Week = WEEKNUM('Calendar'[Date],1) in Calendar table.

 

Then you can create a measure like below:

 

Measure = CALCULATE(COUNT('case-export'[Case#]),FILTER('case-export',MAX('Calendar'[Week])>=WEEKNUM('case-export'[Created]) && MAX('Calendar'[Week])<WEEKNUM('case-export'[Resolved])))

 

You an download the attached pbix file to have a look.

 

Best Regards,
QiuyunYu

 

 

Community Support Team _ Qiuyun Yu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Hi @v-shex-msft

 

Thank you for the detailed solution but it doesn't return the correct number I'm afraid.

I've looked over the Power bi file you've attached and it seems to be working correctly.

 

On my file, it returns a much lower number than expected.

 

We have cases that remain open for few weeks, maybe that's the issue?

 

Can you explain to me the parts of the measure you've written?

 

Kind regards,

Asher

Hi @AsherB,

 

As you said it returns incorrect values in your pbix file? Would you please share your pbix file with us if possible? Or you can use some dummy data to clarify the issue. 

 

The DAX I written is to compare each calendar week for each record's start week and end week to decide whether it's open in current calendar week. 

 

Best Regards,
Qiuyun Yu 

Community Support Team _ Qiuyun Yu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
AsherB
New Member

Hi,

 

I'm pretty new to Power Bi and learning a lot from answers given here.

I'm trying to create a ticket backlog.

 

Following are the relevant columns:

Table: 'case-export'

Case #

Created(creation date)

Resolved

'Case Custom Field 11 (Severity )'(I can also add it later as a filter, I believe it will be more simple)

 

Table: 'Calander'

Date

Month

 

The result I'm interested in is a backlog showing for each week, how many tickets were open("created" but not "resolved") and if possible by severity.

 

For example:

For week 34, we had 12 open tickets with "General" severity, 10 "minor", 5 "Major", 2 "Critical"

Just to show the trend we can use every Sunday as a week marker.

 

Thanks in advance,

Asher

Hi @AsherB,

 

If you can please share some sample data to test, it will be help for analysis.

 

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

Hi @v-shex-msft,

 

Thank you for your comment, not sure what you were expecting.

I'll attach a screenshot of the tables.

 

If it helps, attached a single line from the raw data('case-export').

 

https://ufile.io/1fmgu

 

Asher

 

 


Ticket Backlog.PNG

 

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.