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

Get certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register now

Reply
Danielsps
Regular Visitor

Unifying 2 Charts

Hey guys, i've been using and learning powerbi and powerquery for a few days now and i got into a no way out situation, at the moment i'm working with a base of TI incidents which is used to make a weekly dashboard, some of the charts i'm needed to make are very simple, for example, a pie chart showing the priority of all the incidents, or a bar one sorting out the incidents by system, all of these informations and dashboards were previously made on excel using basic functions, but one of these graphs is showing to be very tricky to port: 

 

Danielsps_0-1684259539052.png

 

(i've put random numbers that do not reflect the reality to take this screenshot)

 

It's basicaly a bar chart with 3 informations, the axis y shows the number of incidents, and the axis x the last 12 months, the yellow bar indicates how many incidents were open that month, the green one how many were closed that month (even if they've been open in a previous month) and the red floating point shows the quantity of open incidents at that month, for this to work we used to make 2 new columns in our base, one called month of creation which would take only the month and year that the incident was open, and the other one called month of resolution in this one if the incident was already closed it would take only the month and year from the close date, if it was still open, it would be filled with a future date as placeholder, for example (202501).

 

With these two new columns, we would have in another excel folder the following table: 

 

Danielsps_1-1684260567241.png

 

The open column would have a COUNTIFS, counting how many lines the month of creation matching with the month cell.

The closed column would have a COUNTIFS, counting how many lines the month of resolution matching with the month cell.

The backlog column would have a COUNTIFS, counting how many lines in month of creation were below the month cell and at the same time how many lines in month of resolution were over the month cell, thus, getting the incidents still open that month.

 

Now, finally in powerbi and powerquery, i made in powerquery a step that created 2 new columns to my base exactily like the month of creation and month of resolution ones but i cant make a chart containing both of them like i used to do in excel, i can make 2 of them, one for the open incidents (month of creation at the x axis and a measure that calculates all the base lines, thus getting the total number of incidents on the y axis) that month and one for the closed incidents (month of resolution at the x axis and a measure that calculates all the base lines, thus getting the total number of incidents on the y axis), but i cant seem to find a way to make just one graph with these 2 infos, also, i cant get a way to show the backlog ones, as they are with a 2030 date as placeholdes, thus, not being able to apear in my Chart.

0 REPLIES 0

Helpful resources

Announcements
November Carousel

Fabric Community Update - November 2024

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

Live Sessions with Fabric DB

Be one of the first to start using Fabric Databases

Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.

Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early Bird pricing ends December 9th.

Nov PBI Update Carousel

Power BI Monthly Update - November 2024

Check out the November 2024 Power BI update to learn about new features.