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

Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!

Reply
MeghnaZutshi
Frequent Visitor

Report number of opened and closed tickets daywise

I have a ticket dataset with Date range : Nov 2022 to Feb 2023 and has following fields:


Ticket Number
Created Date
Resolved Date

i need to show number of opened and closed tickets per day on a line chart .


 

1 ACCEPTED SOLUTION
olgad
Resident Rockstar
Resident Rockstar

Hi, create a date table.

the easiest way 

Data Table=Calendar(min(opened date), date(year(today()),12,31))

Create relationship between open date and date 

Create relationship between closed date and date (it is gonna be inactive, since you cannot have two active relationship between two same tables) 

create 2 measure one for Opened Tickets=Count(ticketid) or countrows()

Resolved tickets= Calculate(count(ticketid), userelationship(datetable date, yourtable closed date))

create s line chart with x axis date from date table and y axis will have two measures


DID I ANSWER YOUR QUESTION? PLEASE MARK MY POST AS A SOLUTION! APPRECIATE YOUR KUDO/LIKE!
PROUD TO BE A SUPER USER!
Best Stories, Interesting Cases: PowerBI Storytime Newsletter
Linkedin Profile: Linkedin
YouTube Channel: PowerBI Storytime

View solution in original post

1 REPLY 1
olgad
Resident Rockstar
Resident Rockstar

Hi, create a date table.

the easiest way 

Data Table=Calendar(min(opened date), date(year(today()),12,31))

Create relationship between open date and date 

Create relationship between closed date and date (it is gonna be inactive, since you cannot have two active relationship between two same tables) 

create 2 measure one for Opened Tickets=Count(ticketid) or countrows()

Resolved tickets= Calculate(count(ticketid), userelationship(datetable date, yourtable closed date))

create s line chart with x axis date from date table and y axis will have two measures


DID I ANSWER YOUR QUESTION? PLEASE MARK MY POST AS A SOLUTION! APPRECIATE YOUR KUDO/LIKE!
PROUD TO BE A SUPER USER!
Best Stories, Interesting Cases: PowerBI Storytime Newsletter
Linkedin Profile: Linkedin
YouTube Channel: PowerBI Storytime

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

Vote for your favorite vizzies from the Power BI World Championship submissions!

Sticker Challenge 2026 Carousel

Join our Community Sticker Challenge 2026

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

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.