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

Número addCOLUMNS

Hola - Tratando de utilizar la fórmula de columna calculada a continuación y estoy recibiendo este mensaje de error:
"Esta expresión se refiere a columnas mulitiple. Varias columnas no se pueden convertir en un valor escalar."
Mi objetivo es agregar la columna "Potencial" de mi tabla Pronóstico a mi tabla Pedidos enviados. (no están conectados directamente a través de ninguna relación)
Añadir potencial - ADDCOLUMNS(
'Flu_Shipped órdenes',
"Potencial",
Número de mes de VAR ?
MES ( 'Flu_Shipped Pedidos'[Fecha de envío] )
devolución
LOOKUPVALUE (
Forecasts_Snapshots[Potencial],
Forecasts_Snapshots[Artículo],'Flu_Shipped Pedidos'[Artículo],
Forecasts_Snapshots[Est.Close], MonthNumber))

data model.png

7 REPLIES 7
Anonymous
Not applicable

También cuando se trabaja con columnas calculadas me parece bastante útil 'diseñar' la fórmula en Excel primero. De este modo, obtendrá un mejor control de errores en comparación con Power BI Pro.

parry2k
Super User
Super User

@texmexdragon solo necesita la siguiente expresión

     LOOKUPVALUE (
            Forecasts_Snapshots[Potential],
            Forecasts_Snapshots[Item],'Flu_Shipped Orders'[Item],
            Forecasts_Snapshots[Est.Close], MonthNumber))
 



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

Anonymous
Not applicable

Sólo una actualización rápida.... cambiar el "número de mes" por el valor real, también me da el mismo error. "Se proporcionó una tabla de varios valores donde se esperaba un único valor"

No lo entiendo porque el código parece correcto.

Búsqueda: LOOKUPVALUE (
Forecasts_Snapshots[Potencial],
Forecasts_Snapshots[Artículo],'Flu_Shipped Pedidos'[Artículo],
Forecasts_Snapshots[Est.Close],'Flu_Shipped Orders'[Fecha de envío])

@texmexdragon

Add Potential =
    VAR MonthNumber =
        MONTH ( 'Flu_Shipped Orders'[Date Shipped] )
    RETURN
        LOOKUPVALUE (
            Forecasts_Snapshots[Potential],
            Forecasts_Snapshots[Item],'Flu_Shipped Orders'[Item],
            Forecasts_Snapshots[Est.Close], MonthNumber)


Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

Anonymous
Not applicable

¡Eso funcionó! ¡Gracias!

Sólo curiosidad, ¿sabe por qué la fórmula ADDCOLUMNS no funcionaría?

@texmexdragon addcolumns devuelven una tabla no una columna, ya tiene una tabla a la que va a agregar columna. Si estuviera creando una tabla calculada con DAX, entonces sí, addcolumns funcionaría.

Me 💖 Kudos 🙂 si mi solución me ayudara. Si puedes pasar tiempo publicando la pregunta, también puedes hacer esfuerzos para darle a Kudos quien haya ayudado a resolver tu problema. ¡Es una muestra de agradecimiento!



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

Anonymous
Not applicable

@parry2k No tengo clara tu solución. Esta parece ser la misma fórmula que ya tengo.

Lo probé como una fórmula independiente (sólo usando el valor de búsqueda), pero no reconoce "monthnumber" (que era un VAR de la fórmula original)

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.