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

The Power BI Data Visualization World Championships is back! It's time to submit your entry. Live now!

Reply
sreeni
Frequent Visitor

Open & Closed Tickets by status by month,Qtr,Year in Stacked Chart

HI Team, 

 

I'm developing report where I want to analyze the open/created tickets(count) versus closed tickets(count) by ticket status by month,Qtr,Year .

 

Today I can filter (closed tickets or opened tickets) in my tickets system by the date using two separated measures. I'm not able to get tickets which have the same date/period of "Creation_Date" and "LatestUpdated_Date" according the calendar dim table.

 

Created Tickets : Using Active join enabled between creation_date and calendar dim table.

 

Closed Tickets: Here is my problem. Not able to figureout the no.of tickets in period based on the inactive join between LastUpdated_Date and calendar dim table. Even tried USERELATIONSHIP, but no luck. Please help.

 

Tickets_Details Table:

Ticket NumberCREATION_DATELastUpdated_DateResolution Status
665271/20/2019 0:001/20/2019 0:00DRAFT
665281/20/2019 0:003/20/2019 0:00PENDING APPROVAL
665291/20/2019 0:001/20/2019 0:00PENDING APPROVAL
665301/20/2019 0:001/20/2019 0:00UNDER REVIEW
665311/20/2019 0:001/21/2019 0:00UNDER REVIEW
665321/20/2019 0:003/20/2019 0:00DRAFT
665331/20/2019 0:001/21/2019 0:00IMPLEMENTED
665341/20/2019 0:001/20/2019 0:00UNDER REVIEW
665351/20/2019 0:002/21/2019 0:00UNDER REVIEW
665361/20/2019 0:001/21/2019 0:00UNDER REVIEW
665371/20/2019 0:001/20/2019 0:00DRAFT
665381/20/2019 0:001/20/2019 0:00DRAFT
665391/20/2019 0:001/20/2019 0:00SCREEN
665401/20/2019 0:001/20/2019 0:00UNDER REVIEW
665411/20/2019 0:001/20/2019 0:00UNDER REVIEW
665421/20/2019 0:001/20/2019 0:00DRAFT
665431/21/2019 0:001/21/2019 0:00UNDER REVIEW
665441/21/2019 0:001/21/2019 0:00UNDER REVIEW
665451/21/2019 0:003/28/2019 0:00UNDER REVIEW
665461/21/2019 0:001/21/2019 0:00UNDER REVIEW
665471/21/2019 0:001/21/2019 0:00DRAFT
665481/21/2019 0:002/21/2019 0:00WITHDRAWN
665491/21/2019 0:001/21/2019 0:00DRAFT
665501/21/2019 0:001/21/2019 0:00DRAFT
665511/21/2019 0:001/21/2019 0:00SCREEN
665521/21/2019 0:001/21/2019 0:00UNDER REVIEW

 

Regards

SRRY

 

2 REPLIES 2
avanderschilden
Resolver I
Resolver I

Hello,

 

Did you use USERELATIONSHIP in the following way;

 

Measure =
CALCULATE (
    COUNTROWS ( Tickets_Details ),
    USERELATIONSHIP ( 'Calendar'[Date], Tickets_Details[LastUpdated_Date] )
)

It should work...

Hi, Thanks for the reply.  my problem here is that when I add Resolution Status, the no.of tickets created showing incorrect as data is spliting based on resolution status.

 

Basicaly, I want see how many tickets created,closed in period(month,Qtr,Year). Staus is also needed in drill down(I mean status should be available along X-axis).

I'm expecting visual as below.

Status grouping as below.

Closed ={Closed,Rejected,withdrawn}

OPened = which are not comes under Closed (as above).

 

In below visual I have taken Creation Date so, closed tickets showing incorrectly.

 

please help me here.


@avanderschilden wrote:

Hello,

 

Did you use USERELATIONSHIP in the following way;

 

Measure =
CALCULATE (
    COUNTROWS ( Tickets_Details ),
    USERELATIONSHIP ( 'Calendar'[Date], Tickets_Details[LastUpdated_Date] )
)

It should work...


Expecting visual like thisExpecting visual like this

 

Graph1:

Chart.gif

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! It's time to submit your entry.

January Power BI Update Carousel

Power BI Monthly Update - January 2026

Check out the January 2026 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.