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

Get inspired! Check out the entries from the Power BI DataViz World Championships preliminary rounds and give kudos to your favorites. View the vizzies.

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
Super User
Super User

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
Super User
Super User

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
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code FABINSIDER for a $400 discount!

FebPBI_Carousel

Power BI Monthly Update - February 2025

Check out the February 2025 Power BI update to learn about new features.

March2025 Carousel

Fabric Community Update - March 2025

Find out what's new and trending in the Fabric community.