Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
How can I built a correct Bubble Chart with on the x-axis the date and on the y-axis time duration (time difference between "Mail Incomen" and "Mail Return")? I know you can do this in Excel (see picture below), but how can you fix this in Power BI?
On the y-axis I use (on the date of 08-04-2020) for example 1:24 (= 1 hour and 24 minutes) = 124. This is probably not the correct way, but it is a little bit creative. I want to see values on the y-axis like they have in Excel (HH:MM). In Power BI I have set the value on the y-axis on "Average" (Data in the column "Time"). The number that now will display on 08-04-2020 is 175 (the average -> 2*124 + 2*226 / 4). Actually I want to see two dots in the bubble chart on that day, two clustering of 1:24 (124) and two clustering of 2:26 (226) -> just like in Excel. What can I do to fix this problem in Power BI?
On the x-axis I also want a date interval of 5 days instead of showing the date by data point (see picture below) -> how can I fix this issue?
My Bubble Chart example in Power BI
Piece of data in Power BI for the Bubble Chart
Piece of data in Power BI for the Bubble Chart to copy and paste
Date | Contract | Amount | Type | Fine Status | Mail income | Mail return | Difference | Time | Index |
08-04-2020 | A | 5110 | Elek | Indicatief | 08-04-2020 08:54:00 | 08-04-2020 10:18:00 | 01:24:00 | 124 | 0 |
08-04-2020 | B | 988 | Elek | Indicatief | 08-04-2020 08:54:00 | 08-04-2020 10:18:00 | 01:24:00 | 124 | 1 |
08-04-2020 | C | 989 | Gas | Indicatief | 08-04-2020 14:25:00 | 08-04-2020 16:51:00 | 02:26:00 | 226 | 2 |
08-04-2020 | D | 6401 | Gas | Indicatief | 08-04-2020 14:25:00 | 08-04-2020 16:51:00 | 02:26:00 | 226 | 3 |
21-04-2020 | E | 5345 | Elek | Indicatief | 21-04-2020 10:47:00 | 21-04-2020 16:35:00 | 05:48:00 | 548 | 4 |
21-04-2020 | F | 10621 | Elek | Loss | 21-04-2020 10:47:00 | 21-04-2020 16:35:00 | 05:48:00 | 548 | 5 |
If the Bubble Chart is not the correct chart to use for my data than what will be a good alternative?
Thanks for the help
Solved! Go to Solution.
The core issue here is that you are already using the "Fine status" column as the legend for the bubble chart. Having several different datapoint on a single X-value can only be done by implementing a legend.
Currently you a displaying a datapoint for each fine status value that can be found in the related date. If you feel that you can replace the fine status legend you can use the "time" column instead to get the desired values:
As for the dates the most simple soution is to just group it by week. If this is applicable you can just use a new column:
Week = WEEKNUM(Table[Date] , 2)
If you need exact 5 day intervals then it becomes a little more complicated, let me know if that's the case.
/ J
The core issue here is that you are already using the "Fine status" column as the legend for the bubble chart. Having several different datapoint on a single X-value can only be done by implementing a legend.
Currently you a displaying a datapoint for each fine status value that can be found in the related date. If you feel that you can replace the fine status legend you can use the "time" column instead to get the desired values:
As for the dates the most simple soution is to just group it by week. If this is applicable you can just use a new column:
Week = WEEKNUM(Table[Date] , 2)
If you need exact 5 day intervals then it becomes a little more complicated, let me know if that's the case.
/ J
Many thanks for the solution for the Bubble Chart (changing the "legend") and grouping the x-axis on weeks. This is much better than what I already had
@Sjimmie00 , Not very clear You can create a five-day bucket in your calendar.
You can change x-axis type = continuous
User | Count |
---|---|
74 | |
71 | |
42 | |
31 | |
28 |
User | Count |
---|---|
99 | |
92 | |
50 | |
49 | |
46 |