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
shantanu97
Helper I
Helper I

Error de relación en el cálculo de columnas DAX

Escribir una calcominación de columna DAX, pero no sé por qué no muestra el resultado? También agredo el modelo de relación también. ¿Alguien puede ayudarme a solucionar este problema??
Valor USD - SWITCH(RELATED('OLAP Organisation'[BaseCurrency]),
"USD",'OLAP CUBE_Finance_WB'[Importe],
"GBP",'OLAP CUBE_Finance_WB'[Importe]*RELACIONADO('Tipos de cambio'[Tasa a GBP/USD]),
"AUD",'OLAP CUBE_Finance_WB'[Importe]*RELACIONADO('Tipos de Cambio'[Tasa a AUD/USD])
)

shantanu97_0-1596179835961.png

shantanu97_1-1596179946228.png

Adjuntar archivo pbix: https://drive.google.com/file/d/1m1VNHCgCTzEFP9LvK3tsHqeiDHtTRpVo/view?usp=sharing

3 REPLIES 3
v-lili6-msft
Community Support
Community Support

hola @shantanu97

Parece que la función RELACIONADA podría utilizarse entre una tabla de importación y una tabla directquery, debe mantenerlas en el mismo modo de almacenamiento.

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.
amitchandak
Super User
Super User

@shantanu97, por favor encuentre el archivo adjunto después de la firma

Pragati11
Super User
Super User

Hola @shantanu97 ,

Veo que tiene una relación inactiva/secundaria entre sus tablas OLAP CUBE FINANCE WB y EXCHANGE RATES.

Para utilizarlos en un DAX junto con la función RELACIONADA, esta relación debe ser una relación activa/primaria.

Modifique sus relaciones y pruebe su DAX.

Gracias

Pragati

Best Regards,

Pragati Jain


MVP logo


LinkedIn | Twitter | Blog YouTube 

Did I answer your question? Mark my post as a solution! This will help others on the forum!

Appreciate your Kudos!!

Proud to be a Super User!!

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.