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

Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM. Register now.

Reply
jnewell
Regular Visitor

Translating an integer of hours in to text format for a standard card visual

Hello all, 

 

Fist time poster here. 

I have been introduced to Power BI as an engineer and I am working through some dashboards which I have been asked to create. 

One of these identifies has a visualisation of a card with the average timje taken to close a ticket for our support desk during a sliding period. 

 

Unfortunately I am a little stuck.

 

I have created a column in my data to show the time taken (as duration) in my data set, and the card allows me to average this, however it shows 1.16 as the average. 

I am trying to get this to show as "1 hour 9 Minutes" on the card, but I just cannot seem to do it. (Pulling out what little hair I have left!)

Is there any suggestions you can give for me to do this? Whether it be a different visualisation or a calculation/measure that can be applied to show the average in the card, anything would be much appreciated. 

 

Many thanks in advacne, 

Jame

1 ACCEPTED SOLUTION
parry2k
Super User
Super User

@jnewell sorry add it as a column, not  measure since Time taken is a column

 

Time Take in Time Format = 
VAR __timeTaken = YourTable[Time Taken]
VAR __hour = TRUNC ( __timeTaken , 0 )
VAR __minutes = ( __timeTaken - __hour ) * 60
RETURN
FORMAT (
    TIME ( 
        __hour,
        __minutes, 
        0
    ),
    "long time"
)

 

Check my latest blog post Improve UX: Show Year in Legend When Using Time Intelligence Measures | PeryTUS IT Solutions  I would ❤ Kudos if my solution helped. 👉 If you can spend time posting the question, you can also make efforts to give Kudos to whoever helped to solve your problem. It is a token of appreciation!

Visit us at https://perytus.com, your one-stop-shop for Power BI-related projects/training/consultancy.



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

View solution in original post

5 REPLIES 5
v-robertq-msft
Community Support
Community Support

Hi, @jnewell 

Have parry2k’s DAX formula helped you to find a solution?

You can try to use his formula to create a calculated column and place the column into the card chart and set the value as “Average”, like this:

v-robertq-msft_0-1614149591649.png

 

If you have solved your problem, would you like to mark his reply as a solution so that others can learn from it too?

Thanks in advance!

How to Get Your Question Answered Quickly 

 

Best Regards,

Community Support Team _Robert Qin

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

parry2k
Super User
Super User

@jnewell sorry add it as a column, not  measure since Time taken is a column

 

Time Take in Time Format = 
VAR __timeTaken = YourTable[Time Taken]
VAR __hour = TRUNC ( __timeTaken , 0 )
VAR __minutes = ( __timeTaken - __hour ) * 60
RETURN
FORMAT (
    TIME ( 
        __hour,
        __minutes, 
        0
    ),
    "long time"
)

 

Check my latest blog post Improve UX: Show Year in Legend When Using Time Intelligence Measures | PeryTUS IT Solutions  I would ❤ Kudos if my solution helped. 👉 If you can spend time posting the question, you can also make efforts to give Kudos to whoever helped to solve your problem. It is a token of appreciation!

Visit us at https://perytus.com, your one-stop-shop for Power BI-related projects/training/consultancy.



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

Shishir22
Solution Sage
Solution Sage

Hello @jnewell ,

 

Replace [Measure] in below dax with your measure giving average value.

 

Measure in hours min = ROUNDDOWN([Measure],0) &" Hours " & ROUND(MOD([Measure]*60,60),0) &" Minutes"

 

Please mark it as solution if it fulfills your requirement

Thanks!

Cheers,
Shishir
parry2k
Super User
Super User

@jnewell convert measure into time and then use format, something like this:

 

Measure in Time = 
VAR __measure = [Your Measure]
VAR __hour = TRUNC ( __measure, 0 )
VAR __minutes = ( __measure - __hour ) * 60
RETURN
FORMAT (
    TIME ( 
        __hour,
        __minutes, 
        0
    ),
    "long time"
)

 

and now use this new measure in the card visual.

 

Check my latest blog post Compare Budgeted Scenarios vs. Actuals I would  Kudos if my solution helped. 👉 If you can spend time posting the question, you can also make efforts to give Kudos to whoever helped to solve your problem. It is a token of appreciation!

Visit us at https://perytus.com, your one-stop-shop for Power BI-related projects/training/consultancy.



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

Hi @parry2k , 

 

Thank you for your speedy response. 

 

I have tried the measure you have suggested,

 

Shot of Measure.png

 

 

 

 

 

 

 

 

However I get the following error; 

 

"The value for 'Time Taken' cannot be determined. Either the column doesn't exist, or there is no current row for this column."

 

I know the column exists as I created it as part of trying to get the average time taken to close a ticket, however I am currently stumped once more. 

 

Any suggestions? 

 

Many thanks in advance. 

James

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.