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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
jamesjj
New Member

Perform calculation for pie chart

I'm probably over complicating this but here goes. I have time field that I have converted to a decimal number (time field/24), as an example converts 15 minutes to .25

I have a pie chart that sums the time/person. The pie chart displays the sum correctly (eg will show 1.3k, as in 1300 minutes, but would like to show it in hours now(21.6 hours). 

Is this possible, is there an easier way to do this? Any help is ap

1 ACCEPTED SOLUTION

So.... I accidently figured this out. I discovered I had a couple hundred entires that were a negative number and for some reason throwing this way out of whack. My original new column (time *24)-24 without anything fixed the issue. 

Next time I'll wait a day before I post a question 🙂

View solution in original post

5 REPLIES 5
jamesjj
New Member

I can't seem to get the field into the calculation. Neither the original time field, or the calculated decimal field are available or work in the calculation. 

Try this : Time_Hours = DIVIDE(MAX(Time_Minutes),60) 

So.... I accidently figured this out. I discovered I had a couple hundred entires that were a negative number and for some reason throwing this way out of whack. My original new column (time *24)-24 without anything fixed the issue. 

Next time I'll wait a day before I post a question 🙂

Tried this one and is looking for a second argument, although when I put a another number after the "60" it says I have 2 many arguments lol. Without "Max" in the equation, the option to pick the field does not come up. Am I maybe going about this wrong? I choose Modeling>New Measure and type in equation..

JorgePinho
Solution Sage
Solution Sage

Can't you just create a measure like this Time_Hours = DIVIDE(Time_Minutes,60) and use it in the chart instead of the minutes field you are using?

 

 

Helpful resources

Announcements
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!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.