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
askspepsi
Helper II
Helper II

•Consulta directa ? Cambie a Formato de tiempo y Redondeo a más cercano.

hola a todos,

Tengo una salida de datos en mi tabla sql en formato numérico, al intentar calcuate la salida diferenciada viene en formato numérico, pero la salida requerida está a continuación.

11.35 a 11:21 y debe redondear a las 11:00

11.65 a 11:39 y debe redondear a 11:30

12:00 a 12:00 y no debe redondear a las 12:00

1 ACCEPTED SOLUTION
FrankAT
Community Champion
Community Champion

Hola @askspepsi ,

si obtuve su lógica correctamente, pruebe los siguientes formularios en nuevas columnas:

Half hour = 
ROUND('Table'[Value] / 24 * 48,0) / 48 

Desired Output = 
IF(
    MINUTE('Table'[Value] / 24) <= 30 , 
    ROUND('Table'[Value] , 0 ) / 24 , 
    ROUND('Table'[Value] / 24 * 48 , 0 ) / 48
)

10-08-_2020_17-27-03.png

Saludos FrankAT

View solution in original post

4 REPLIES 4
FrankAT
Community Champion
Community Champion

Hola @askspepsi ,

si obtuve su lógica correctamente, pruebe los siguientes formularios en nuevas columnas:

Half hour = 
ROUND('Table'[Value] / 24 * 48,0) / 48 

Desired Output = 
IF(
    MINUTE('Table'[Value] / 24) <= 30 , 
    ROUND('Table'[Value] , 0 ) / 24 , 
    ROUND('Table'[Value] / 24 * 48 , 0 ) / 48
)

10-08-_2020_17-27-03.png

Saludos FrankAT

@FrankAT 

 

sorry for the late reply, 

Thanks for the update. this is the extact output i required.

 

 

regards

askspepsi

amitchandak
Super User
Super User

@amitchandak

esto está en formato de tiempo donde no puedo cambiar.

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.