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

Get inspired! Check out the entries from the Power BI DataViz World Championships preliminary rounds and give kudos to your favorites. View the vizzies.

Reply
Anonymous
Not applicable

Restar dos valores

Hola a todos,

Soy nuevo en Power BI, así que apoligize si se trata de una respuesta fácil.

Necesito restar los valores de una columna de los valores de otra. Lo he escrito como

(SUM(HR[Annual Rate]-SUM('BY VP'[Annual Rate - Duplications])))
pero obtengo el error: "La función SUM solo acepta una referencia de columna como argumento."
No estoy seguro de exactamente lo que esto significa, cualquier ayuda es apreciada
SUM ERROR.PNG
Gracias de antemano
4 REPLIES 4
v-lili6-msft
Community Support
Community Support

hola @dgp281

A partir de la respuesta, hay un pequeño error que un error de sintaxis en la fórmula, sólo tiene que añadir ")" después de HR[Tasa Anual]

7.JPG

Por favor, intente esto como parry2k proporcionado:

Measure = SUM(HR[Annual Rate])-SUM('BY VP'[Annual Rate - Duplications])

saludos

Lin

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

@v-lili6-msft sólo curioso cómo su solución es diferente de lo que proporcioné???



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.

parry2k
Super User
Super User

@dgp281 probar esto

SUM(HR[Annual Rate])-SUM('BY VP'[Annual Rate - Duplications])

Apreciaría Kudos 🙂 si mi solución me ayudara.



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

¡Gracias!

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

FebPBI_Carousel

Power BI Monthly Update - February 2025

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

March2025 Carousel

Fabric Community Update - March 2025

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

Top Solution Authors
Top Kudoed Authors