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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Sjimmie00
New Member

Struggling with Bubble Chart with on the x-axis the date and on the y-axis time of the day

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? 

 

Excel.JPG

  

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

PowerBIChart.JPG

 

Piece of data in Power BI for the Bubble Chart

PowerBI_Table.JPG

 

Piece of data in Power BI for the Bubble Chart to copy and paste 

DateContractAmountTypeFine StatusMail incomeMail returnDifferenceTimeIndex
08-04-2020A5110ElekIndicatief08-04-2020 08:54:0008-04-2020 10:18:0001:24:001240
08-04-2020B988ElekIndicatief08-04-2020 08:54:0008-04-2020 10:18:0001:24:001241
08-04-2020C989GasIndicatief08-04-2020 14:25:0008-04-2020 16:51:0002:26:002262
08-04-2020D6401GasIndicatief08-04-2020 14:25:0008-04-2020 16:51:0002:26:002263
21-04-2020E5345ElekIndicatief21-04-2020 10:47:0021-04-2020 16:35:0005:48:005484
21-04-2020F10621ElekLoss21-04-2020 10:47:0021-04-2020 16:35:0005:48:005485

 

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

1 ACCEPTED SOLUTION
tex628
Community Champion
Community Champion

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:

image.png

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


Connect on LinkedIn

View solution in original post

3 REPLIES 3
tex628
Community Champion
Community Champion

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:

image.png

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


Connect on LinkedIn

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

amitchandak
Super User
Super User

@Sjimmie00 , Not very clear You can create a five-day bucket in your calendar.

You can change x-axis type = continuous

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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