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
shailendra986
Frequent Visitor

Get total open tickets counts for a month

Hi,

 

I am trying to get total open ticket count over the month period. I referred multiple articles, however the formula in not working and putting the same number across all months. I have Assigned Date and Resolution date Fields available for calculation. Resolution date will be empty if tocket is still open. I have only two tables Assignment and Date.. Could anyone please guid me how to achive this in PowerBi desktop.

2 ACCEPTED SOLUTIONS
Anonymous
Not applicable

Hi @shailendra986

 

I am doing this in 4 step for easy understanding.

 

Create calculated column using the codes.

 

1.  Assignmonth = YEAR(Table1[Assigned Date])&MONTH(Table1[Assigned Date])


2.  Opentktcnt = CALCULATE(COUNT(Table1[Assignment ID]),FILTER(Table1,Table1[Assignmonth]= EARLIER(Table1[Assignmonth])))


3. Carrytkt = CALCULATE(COUNT(Table1[Assignment ID]),FILTER(Table1,ISBLANK(Table1[Resoultion Date])),FILTER(Table1,Table1[Assignmonth]<EARLIER(Table1[Assignmonth])))


4.OverallOpencnt = Table1[Opentktcnt]+Table1[Carrytkt]

The 4th step will give the desired result. When you bring OverallOpencnt to visual, Go to Visualization - > Values-> Right click on "OverallOpencnt" and select "Dont summarize".

 

 

Here is the final output ( Highlighted in yellow)

 

Opentkt cnt.PNG

 

 

Thanks

Raj

View solution in original post

Thank you Raj for you help.

View solution in original post

9 REPLIES 9
Anonymous
Not applicable

Hi @shailendra986

 

Please share some sample data ( in copy & paste-able format) and expected output.

 

Thanks
Raj

Here is the example.

 

Assignment IDAssigned DateResoultion Date
86213/5/2018null
88423/20/20183/22/2018
96874/8/2018null
69915/21/2018null
61945/22/20185/25/2018
98746/8/2018null

 

Expected Result in PowerBI report

 

Month NameTotal Ticket Count
Mar2
Apr2
May4
June4
Anonymous
Not applicable

How did you get 2 for March and 4 for May?

 

Thanks

Raj

For Mar there are two tickets which got opned. 

And for May also two tickets got opned, however May month is carrying over one open ticket from Mar and one from Apr, which sums up for total 4 tickets in total.

 

I need to count total numbers of ticket opened in that month and plus carrying over ticket which has opned in previous month and were still open for reporting month.

Anonymous
Not applicable

Hi @shailendra986

 

I am doing this in 4 step for easy understanding.

 

Create calculated column using the codes.

 

1.  Assignmonth = YEAR(Table1[Assigned Date])&MONTH(Table1[Assigned Date])


2.  Opentktcnt = CALCULATE(COUNT(Table1[Assignment ID]),FILTER(Table1,Table1[Assignmonth]= EARLIER(Table1[Assignmonth])))


3. Carrytkt = CALCULATE(COUNT(Table1[Assignment ID]),FILTER(Table1,ISBLANK(Table1[Resoultion Date])),FILTER(Table1,Table1[Assignmonth]<EARLIER(Table1[Assignmonth])))


4.OverallOpencnt = Table1[Opentktcnt]+Table1[Carrytkt]

The 4th step will give the desired result. When you bring OverallOpencnt to visual, Go to Visualization - > Values-> Right click on "OverallOpencnt" and select "Dont summarize".

 

 

Here is the final output ( Highlighted in yellow)

 

Opentkt cnt.PNG

 

 

Thanks

Raj

Thanks Raj this is exactly what I was looking for, however when I try to plot this with a line graph it doesnt work. The OverallOpencnt is summarized on the Y axis. Is there any way to make this work with a graph?

Hi Raj,

 

Thanks for providing the formula.

 

Can we use this as Measure, because i need to place this in real reporting. In which summarizing can happen across resource, month, assignment type levels etc.

 

when i am plotting same in resource level number doesn't change. Please check below records generated by PowerBI.

 

Assignment MonthTotal Open Assignment CountOpen AssignmentsCarry AssignmentAssigned To
2018614112021E
2018614112021H
2018614112021I
2018614112021N
2018614112021P
2018614112021R
2018614112021Sh
2018614112021Su
2018614112021U
2018614112021V
2018614112021Vi

 

Thanks,

Anonymous
Not applicable

Hi @shailendra986

 

You can follow the solution i have provided above which will get you the expected output. You can play around with the solution to get more out of that like testing with measures etc.

 

Thanks

Raj

Thank you Raj for you help.

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.