Forum Discussion
Combined chart with two X-axis
Hello,
I have a table with tickets reported in our system. Each ticket has columns: ID, Reported Date, Closed Date, Close Reason.
I'd like to draw a chart, where I can see:
- X-axis: Month number
- Y-axis: Number of tickets created and closed (but only with one specific Close Reason) in this month
So basically I'd like to have this two charts combined to one:
- Reported tickets:
- Ticked closed with specific reason:
Is it possible in Power BI?
Best regards
RafaĆ
4 Replies
- v-piga-msftResident Rockstar
Hi rmieszko,
Based on your image, the X axis of the two charts is Month Number. We could create a Clustered column chart with Month Number as X axis and Reported tickets andTicked closed with specific reason as values. The chart will like below.
Is this your desired outpu? If not, please share your desired output so that we could help further on it.
Best Regards,
Cherry
- rmieszkoFrequent Visitor
Hi v-piga-msft,
yes, that's the output I'm looking for. But the thing is Month Number means both Closed Date and Reported Date. So I don't have one column with month number.
Also, as an input I don't have number of tickets reported and closed in each month, but ticket list itself, so I have to do measurments in Power BI. Here's a sample of input data.
ID State Reported Date Closed Date 7129 ReasonX 05.01.2017 01:17:12 13.02.2017 13:07:43 6979 Closed 05.01.2017 08:42:01 18.01.2017 08:30:21 6980 Closed 05.01.2017 08:56:01 18.01.2017 08:30:21 8420 ReasonX 11.01.2017 00:09:05 12.02.2017 08:29:48 8273 ReasonX 11.01.2017 08:32:08 12.02.2017 08:31:03 8970 Closed 12.01.2017 06:23:40 27.01.2017 10:31:02 8973 ReasonX 12.01.2017 06:51:13 17.01.2017 09:50:50 8978 Closed 12.01.2017 07:03:25 26.01.2017 14:41:01 8981 Closed 12.01.2017 07:33:42 03.02.2017 09:31:27 9296 Closed 13.01.2017 01:19:58 09.02.2017 11:36:38 9766 Closed 16.01.2017 04:56:55 03.02.2017 09:34:33 For Reported Tickets part I need to use ID, Reported Date,.
For Closed Tickests part I need to use ID, Closed Date, State=ReasonX.
I hope it's clear now and you can help me :-)
- rmieszkoFrequent Visitor
Any idea, anybody? :-)
- AnonymousNot applicable
Hi rmieszko,
The way I have done is,
1. Create a Calendar Table (Date Dimension).
2. Using Calculate table create another table by filtering out only the resolved tickets.
3. Join the Original table with all tickets on Reported Date with the Date Dimension.
4. Join the calculated table with only resolved tickets on Resolved Date with the Date Dimension.
5. You can then create a single chart with both reported tickets count & resolved tickets count.
Please let me know if this resolves your issue or if you would like me to explain further.
#KeerthanUpadhya.