This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. We're covering it all. You won't want to miss it.
Learn moreLevel up your Power BI skills this month - build one visual each week and tell better stories with data! Get started
Hi,
I have two measures like below.
Now, I want to multiply them, but when I do that, the results are decimal numbers.
How to change them to Minutes/Hours?
Hi,
Please try this measure:
Measure = FORMAT(SUM(TSENB_CUSTINVOICETRANS[QTY])*SUM('Production Standards'[Time]),"HH:MM:SS")Hope this helps.
Best Regards,
Giotto
@v-gizhi-msft
Your solution works, thanks.
But, I can't figure out issue with suming time (Total).
Why isn't correct?
@pawelj795 , for correct GT you have force row context, try like
Measure = FORMAT(SUMX(Summarize('Production Standards', 'Production Standards'[Item],"_1",Sum(TSENB_CUSTINVOICETRANS[QTY]),"_2",SUM('Production Standards'[Time])),[_1]*[_2]),"HH:MM:SS")
Same issue even with columns.
Hi,
It is because the measure total depends on context not the current field in visual.
This is a classical measure total issue.
Please try this:
Measure =
FORMAT (
SUMX (
DISTINCT ( TSENB_CUSTINVOICETRANS[Item name] ),
TSENB_CUSTINVOICETRANS[QTY] * 'Production Standards'[Time]
),
"HH:MM:SS"
)Hope this helps.
Best Regards,
Giotto
@v-gizhi-msft
@amitchandak
I tried both of your's solution but it still didn't work.
In some cases the results are correct but in most cases are incorrect.
@pawelj795 , New column in minute
New column = hour([Time])*60 + minute([Time]) // Change data type from whole number to decimal
@amitchandak
The problem is that I have indirect relationship between these two tables.
That's why I must use measures instead of columns.
You can use
sumx(Table,hour(Table[Time])*60 + minute(Table[Time]))
But mutiplcation need to done on a common row context . Refer
You may have use summarize or values
@amitchandak
Okay I get it, thanks.
But is there any way to display hours/minutes/seconds in measure as time format like below column?
Check out the April 2026 Power BI update to learn about new features.
Sign up to receive a private message when registration opens and key events begin.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
| User | Count |
|---|---|
| 35 | |
| 32 | |
| 25 | |
| 22 | |
| 18 |
| User | Count |
|---|---|
| 66 | |
| 36 | |
| 32 | |
| 25 | |
| 23 |