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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
prb
Frequent Visitor

unable to generate proper line chart

Hi Colleagues,

could You please help me with the below issue I have faced?

I have a ticket database with opened and closure date (where applicable). I would like to use line chart to see how much tickets are opened and closed in a particular calendar week. For this I have converted the dates to necessary format (year/week), but when I put the "count of opened date" and "count of closed date" to the line chart, I was not sure what to use in the axis. if I put there either "opened date" or "closed date" to list there the year/week values in axis, the outcome was not proper. after that I have created a separate table only for year/week values using DISTINCT function from "opened date", and I would have used this column for axis. however, this is in different table and I cannot connect this column to both "opened date" and"closed date" in the other table since more relations are not supported. Do You know if there is an easyer method to solve this?

 

ticketopened date (YYYY/WW)closed date  (YYYY/WW)
a2019/232019/23
b2019/242019/26
c2019/262019/27
d2019/262019/27
e2019/262019/27
f2019/28 

 

thanks in advance

1 ACCEPTED SOLUTION

Hi @prb 

In Edit queries, 

Capture6.JPGCapture7.JPGCapture8.JPG

 

 

Close&&aplly, create a date table

 

date = ADDCOLUMNS( CALENDARAUTO(),"year",YEAR([Date]),"weeknum",WEEKNUM([Date]))

 

then create  ameausre

 

Measure = DISTINCTCOUNT(Sheet5[ticket])

 

Capture9.JPGCapture10.JPG

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

View solution in original post

3 REPLIES 3
Anonymous
Not applicable

Hi there - 

 

Could you please share a line chart (probably drawn on a piece of paper and taken a photo) of what you are expecting to see as the outcome? I am unable to visualize exactly what you are after, sorry about that.

 

Regards

prb
Frequent Visitor

Hi

 

indeed, sorry I was not so explicit. I was looking for some similar chart. note: this is not in synch with the table above.

 

thanks in advance

 

 

linechart.png

Hi @prb 

In Edit queries, 

Capture6.JPGCapture7.JPGCapture8.JPG

 

 

Close&&aplly, create a date table

 

date = ADDCOLUMNS( CALENDARAUTO(),"year",YEAR([Date]),"weeknum",WEEKNUM([Date]))

 

then create  ameausre

 

Measure = DISTINCTCOUNT(Sheet5[ticket])

 

Capture9.JPGCapture10.JPG

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

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 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.