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

Utilice una medida con columnas de la Tabla A de la Tabla B

Tengo las siguientes tablas:

Puntos
Zona de NegociosCarteraPresupuesto ajustado
A190
B1189
C1360

Presupuesto
Zona de NegociosCarteraPresupuestoPresupuesto ajustado
A110090
A2200180
B1210189
B2300270
C1400360
C2500450

El presupuesto ajustado es una medida realizada en la tabla Presupuesto.

¿Cómo puedo usarlo en la tabla PUNTOS para obtener la columna Ajustado presupuesto como se muestra arriba?

Me gustaría mantenerlo como una medida y no como una columna calculada.

Gracias.

1 ACCEPTED SOLUTION
v-jayw-msft
Community Support
Community Support

Hola @RCG86 ,

Prueba esta medida.

Measure = CALCULATE([Budget Adjusted],FILTER(Budget,Budget[Business Area]=SELECTEDVALUE(Points[Business Area])&&Budget[Portfolio]=SELECTEDVALUE(Points[Portfolio])))

El resultado se mostraría como se muestra a continuación.

2.PNG

Saludos

Jay

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

View solution in original post

6 REPLIES 6
v-jayw-msft
Community Support
Community Support

Hola @RCG86 ,

Prueba esta medida.

Measure = CALCULATE([Budget Adjusted],FILTER(Budget,Budget[Business Area]=SELECTEDVALUE(Points[Business Area])&&Budget[Portfolio]=SELECTEDVALUE(Points[Portfolio])))

El resultado se mostraría como se muestra a continuación.

2.PNG

Saludos

Jay

Community Support Team _ Jay
If this post helps, then please consider Accept it as the solution
to help the other members find it.
Greg_Deckler
Super User
Super User

@RCG86 - Utilice RELATED o RELATEDTABLE en su medida junto con MAXX, por ejemplo. Las medidas pueden vivir en cualquier lugar, no importa cuál sea su mesa de origen.


@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...
AllisonKennedy
Super User
Super User

@RCG86
No entiendo el problema completo. ¿Puede proporcionar más detalles?

Las medidas no pertenecen a tablas, por lo que no importa dónde vea, almacene o cree la medida, se puede utilizar en un objeto visual de tabla con campos de cualquier tabla siempre que existan relaciones y se configuren correctamente.

¿Cómo es el DAX para la medida y cómo se ven los datos sin procesar? ¿No entiendo la diferencia entre la tabla Puntos y las tablas Presupuesto?

Please @mention me in your reply if you want a response.

Copying DAX from this post? Click here for a hack to quickly replace it with your own table names

Has this post solved your problem? Please Accept as Solution so that others can find it quickly and to let the community know your problem has been solved.
If you found this post helpful, please give Kudos C

I work as a Microsoft trainer and consultant, specialising in Power BI and Power Query.
www.excelwithallison.com

amitchandak
Super User
Super User

@RCG86 , Una nueva columna Tabla de presupuesto

maxx(filter(Table, Points[Business Area] á Budget[Business Area] && Points[Portfolio] á Points[Portfolio] ),Points [Budget adjusted])

Anonymous
Not applicable

cualquier alternativa con una medida en lugar de una columna calculada? @amitchandak

Muchas gracias.

Anonymous
Not applicable

cualquier alternativa con una medida en lugar de una columna calculada?

Muchas gracias.

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.