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

ROUNDUP sólo en decimal

Hola

Estoy tratando de escribir una fórmula que redondea todos los números con un decimal hasta el número entero más cercano. Mi problema es que si el número ya es un número entero redondea el número, pero sólo quiero redondear si hay un decimal.

Fórmula actual:

Cantidad de la paleta: ROUNDUP([Cantidad disponible] / (CALCULATE(SUM('Item UOM'[Qty_per_Unit_of_Measure]), 'Item UOM'[Código] - "pallet") -1),0)
Resultado:
PBI.JPG
Quiero que en su lugar:
Excel.JPG
¿Alguien tiene alguna sugerencia sobre cómo lograr esto?
¡Gracias por leer!
1 ACCEPTED SOLUTION
fhill
Resident Rockstar
Resident Rockstar

Columna 'Tabla (2)'[QOH] / 'Tabla (2)'[Cantidad por]
ROUND_UP - ROUNDUP('Tabla (2)'[Columna],0)

Sólo usando algunas matemáticas rápidas, no pude duplciar sus problemas, así que estoy pensando que tiene algo que ver con la función Calcular anidada en el RoundUP. ¿Ha intentado permitir que la función Round_Up haga referencia a su columna 'Caso/Tote Qty' (¿o es una medida?) sin volver a duplciar las matemáticas en la fórmula?

fhill_0-1603309103429.png




Did I answer your question, or help you along the way?
Please give Kudos or Mark as a Solution!


https://www.linkedin.com/in/forrest-hill-04480730/

Proud to give back to the community!
Thank You!




View solution in original post

3 REPLIES 3
v-kelly-msft
Community Support
Community Support

Hola @Kfausch ,

¿Está resuelto tu problema ahora?

Saludos
Kelly

¿He respondido a tu pregunta? ¡Marca mi puesto como una solución!

fhill
Resident Rockstar
Resident Rockstar

Columna 'Tabla (2)'[QOH] / 'Tabla (2)'[Cantidad por]
ROUND_UP - ROUNDUP('Tabla (2)'[Columna],0)

Sólo usando algunas matemáticas rápidas, no pude duplciar sus problemas, así que estoy pensando que tiene algo que ver con la función Calcular anidada en el RoundUP. ¿Ha intentado permitir que la función Round_Up haga referencia a su columna 'Caso/Tote Qty' (¿o es una medida?) sin volver a duplciar las matemáticas en la fórmula?

fhill_0-1603309103429.png




Did I answer your question, or help you along the way?
Please give Kudos or Mark as a Solution!


https://www.linkedin.com/in/forrest-hill-04480730/

Proud to give back to the community!
Thank You!




amitchandak
Super User
Super User

@Kfausch, intente con algunos si condición como

Cantidad de la paleta á divide([Cantidad disponible] , (CALCULATE(SUM('Item UOM'[Qty_per_Unit_of_Measure]), 'Item UOM'[Código] á "pallet") -1))

Si
Cantidad de la paleta new á if(max(table[desciption]) en "A","B","C"- , round([Pallet Qty],0),[Pallet Qty])

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.