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
Anonymous
Not applicable

Cálculo del valor más bajo entre columnas

Estimados expertos,

Soy nuevo en Power BI, y debo admitir que me he sentido bastante estúpido.

Me preguntaba cómo puedo añadir una quinta columna en esta tabla para que pueda encontrar el precio mínimo entre los tres proveedores.

¡Muchas gracias!

Nombre del productoProveedor 1Proveedor 2Proveedor 3Precio más bajo
Enchufe503047?
Elegir536?
Cadena121618?

5 REPLIES 5
camargos88
Community Champion
Community Champion

Hola @MullerBR ,

Puede anular el pivote de los valores del proveedor:

Capture.PNG

y esta medida:

Medida ?
VAR _minPrice - CALCULATE(MIN('Table'[Value]); ALLEXCEPT('Tabla'; 'Tabla'[Nombre del producto]))
VAR _tbSupplier - CALCULATETABLE(VALUES('Table'[Proveedor]); FILTRO(ALLEXCEPT('Tabla';' Tabla'[Nombre del producto]); 'Tabla'[Valor] - _minPrice))
CONCATENADIS DEVOLUCIONES(_tbSupplier; «Tabla»[Proveedor]; ",")
Capture 1.PNG


Did I answer your question? Mark my post as a solution!

Proud to be a Super User!



az38
Community Champion
Community Champion

Hola @MullerBR

echar un vistazo a la gran solución por @Zubair_Muhammad aquí https://community.powerbi.com/t5/Desktop/MIN-with-Multiple-Columns/td-p/369307

Column =
VAR temp = { Table1[Supplier 1], Table1[Supplier 2], Table1[Supplier 3] }
RETURN
    MINX ( Temp, [Value] )

do not hesitate to give a kudo to useful posts and mark solutions as solution
LinkedIn
Anonymous
Not applicable

¡¡¡Muchas gracias!!!

Anonymous
Not applicable

¡Muchas gracias!

Me preguntaba si hay una manera más fácil, o si es mejor agregar una tabla de Excel al modelo que ya contendrá los valores más bajos y sus respectivos proveedores.

Mejor

MullerBR

Hola @camargos88 ,

¿Si la Tabla 2 en la siguiente captura de pantalla es el resultado esperado? En caso afirmativo, desicote primero estas columnas de proveedores y, a continuación, cree la tabla calculada con la siguiente fórmula:

PQuotes = SUMMARIZE('Product quote','Product quote'[Product Name],"SupplierL",CALCULATE(MAX('Product quote'[Attribute]),FILTER('Product quote','Product quote'[Product Name]=EARLIER('Product quote'[Product Name])&&'Product quote'[Value]=MIN('Product quote'[Value]))),"Lowest price",MIN('Product quote'[Value]))

expected result.JPG

Saludos

Rena

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

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.