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!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Dear all,
I'm not an expert on PowerBI and need some help. How can I get the below formula into power BI.
=VALUE(LEFT(TEXT(A2,"##0.00"),FIND(".",TEXT(A2,"#0.00"))-1)*60)+VALUE(RIGHT(TEXT(A2,"#0.00"),2))
Solved! Go to Solution.
Hi @Basheer24 ,
If the column is Number type, you could use the following formula to create a column:
Column 1=
var _Integer= INT([Contract(hh.mm)])
var _Decimal= ([Contract(hh.mm)]-_Integer) *100
return _Integer *60 + _Decimal
Or modify your syntax to fit in PBI like this:
Column 2=
var _s=FORMAT([Contract(hh.mm)],"##.00")
return LEFT( _s ,FIND(".",_s)-1) * 60 + RIGHT(_s,2)
The final output is shown below:
Best Regards,
Eyelyn Qin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @Basheer24 ,
If the column is Number type, you could use the following formula to create a column:
Column 1=
var _Integer= INT([Contract(hh.mm)])
var _Decimal= ([Contract(hh.mm)]-_Integer) *100
return _Integer *60 + _Decimal
Or modify your syntax to fit in PBI like this:
Column 2=
var _s=FORMAT([Contract(hh.mm)],"##.00")
return LEFT( _s ,FIND(".",_s)-1) * 60 + RIGHT(_s,2)
The final output is shown below:
Best Regards,
Eyelyn Qin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
ThanksEyelyn Qin
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!