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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
jwmvanderwilk
Frequent Visitor

Can you use a value of the data type time for a stacked bar diagram?

Can you use a  value of the data type time for  a stacked bar diagram?

 

In Power BI Desktop the only value is (distinct) count, but I want a SUM. I've created a measure, but same result.

 

I use the same query for a paginated SSRS report with no problems. 

Now I want to rebuild the report to Power BI Desktop report.

 

Thanks in advance,

 

Johan van der Wilk

1 ACCEPTED SOLUTION
v-xjiin-msft
Solution Sage
Solution Sage

Hi @jwmvanderwilk

 

As I know, currently it is not supported to sum time in chart.

 

And here's a workaround you can refer:

 

Since you have already created a measure to sum time. You can put this measure in Tooltips. Then when you move your mouse on bar, it will show the total time. Like:

 

 3.PNG

 

Thanks,
Xi Jin.

View solution in original post

2 REPLIES 2
v-xjiin-msft
Solution Sage
Solution Sage

Hi @jwmvanderwilk

 

As I know, currently it is not supported to sum time in chart.

 

And here's a workaround you can refer:

 

Since you have already created a measure to sum time. You can put this measure in Tooltips. Then when you move your mouse on bar, it will show the total time. Like:

 

 3.PNG

 

Thanks,
Xi Jin.

Thanks Xi for your reply,


I hoped that I did something wrong, but it's apparantly not possible.


Tooltip is an option, but I think I will change the datatype from Time to Integer and interperter the values as milliseconds.

Probably I will combine both: Sum the miliseconds and use the measure as a tooltip for readibility.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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