Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
jnnilesh29
Helper III
Helper III

Error de DAX: la expresión contiene varias columnas, pero solo se puede utilizar una sola columna.

Hola

Soy nuevo en PowerBI y estoy aprendiendo a escribir medidas.

Escribí la medida a continuación, sin embargo, estoy recibiendo un error de 'La expresión contiene varias columnas, pero solo se puede usar una sola columna en una expresión True/False que se usa como expresión de filtro de tabla"

Costo del valor acumulado de Cummulative ?
VAR A1 ?
CALCULATE(SUM('Tabla de costos del valor ganado'[Coste]),FILTER(ALLSELECTED('Tabla de costos del valor ganado'), 'Tabla de costos de valor ganado'[Fecha]<-MAX('Tabla de costos de valor ganado'[Fecha])), 'Tabla de costos del valor ganado'[Tipo de costo]"Coste de valor ganado")

VAR A ?
CALCULATE(SUM('Tabla de costos del valor ganado'[Costo]),FILTER(ALLSELECTED('Tabla de costos del valor ganado'), 'Tabla de costos de valor ganado'[Fecha]<-MAX('Tabla de costos del valor ganado'[Fecha])), OR('Tabla de costos del valor ganado'[Tipo de costo]-"Coste del valor ganado",'Clase de costo del valor ganado'[Tipo de costo])"Coste de valor planificado"))

VAR B ?
CALCULATE(SUM('Tabla de costos de valor ganado'[Coste]), ALLSELECTED('Tabla de costos de valor ganado'), OR('Tabla de costos de valor ganado'[Tipo de coste]"Coste de valor ganado", 'Tabla de coste de valor ganado'[Coste]-"Coste de valor planificado"))

VAR D - IF(A<-A1,A/B,"")
devolución
D
¿Alguien puede ayudarme con esto?
Su ayuda es apreciada.
Gracias y saludos,
Nilesh Jain
1 REPLY 1
parry2k
Super User
Super User

@jnnilesh29 error está en la fórmula VAR A y VAR B

VAR A =
CALCULATE(SUM('Earned Value Cost Table'[Cost]),FILTER(ALLSELECTED('Earned Value Cost Table'),'Earned Value Cost Table'[Date]<=MAX('Earned Value Cost Table'[Date])),OR('Earned Value Cost Table'[Cost Type]="Earned Value Cost"),'Earned Value Cost Table'[Cost Type]="Planned Value Cost")

VAR B =
CALCULATE(SUM('Earned Value Cost Table'[Cost]),ALLSELECTED('Earned Value Cost Table'),OR('Earned Value Cost Table'[Cost Type]="Earned Value Cost"),'Earned Value Cost Table'[Cost]="Planned Value Cost")

Me gustaría elogiossi mi solución ayudara.👉Si puedes pasar tiempo publicando la pregunta, también puedes hacer esfuerzos para dar a Kudos quien haya ayudado a resolver tu problema. ¡Es una muestra de agradecimiento!

Visítenos enhttps://perytus.com, su ventanilla única para proyectos/formación/consulta relacionados con Power BI.



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.

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.

Top Solution Authors