This is best Fabric, Power BI, SQL and AI community event. How do we know? The last event sold out! Save €200 with code FABCMTY200.
Register nowA new Data Days event is coming soon! This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. Don't miss out.
Hola expertos, hay una tabla que incluye dos columnas 'Valor' y 'Moneda'. Escribí una medida 'Factura' y siguiendo DAX para obtener el formato de moneda dinámica. Pero como ves el resultado no es correcto. ¿Podría por favor ayudar?
Solved! Go to Solution.
Hay @koorosh ,
Probar:
Invoice =
var _invoice = [Value]/100
return
SWITCH(
SELECTEDVALUE('Table'[Currency],"USD"),
"USD",FORMAT(_invoice,"$#,##0.##"),
"GBP",FORMAT(_invoice,"£#,##0.##"),
"EUR",FORMAT(_invoice,"€#,##0.##"),
"AUD",FORMAT(_invoice,"A$#,##0.##"),
"NZD",FORMAT(_invoice,"OZ#,##0.##"),
"CAD",FORMAT(_invoice,"C$#,##0.##")
)
)
Saludos
Kelly
¿Respondí a su pregunta? ¡Marque mi respuesta como una solución!
@koorosh , parece que esto tiene una solución de problema similar https://radacad.com/dynamically-change-the-format-of-values-in-power-bi
Lo intenté desde ese enlace, pero no hice una tabla de parámetros separada para la moneda. Intento usar la tabla en el modelo que tiene una columna de moneda. ¿Entiendes mi media?
Hay @koorosh ,
¿Su problema está resuelto ahora?
Saludos
Kelly
¿Respondí a su pregunta? ¡Marque mi respuesta como una solución!
Hay @koorosh ,
Probar:
Invoice =
var _invoice = [Value]/100
return
SWITCH(
SELECTEDVALUE('Table'[Currency],"USD"),
"USD",FORMAT(_invoice,"$#,##0.##"),
"GBP",FORMAT(_invoice,"£#,##0.##"),
"EUR",FORMAT(_invoice,"€#,##0.##"),
"AUD",FORMAT(_invoice,"A$#,##0.##"),
"NZD",FORMAT(_invoice,"OZ#,##0.##"),
"CAD",FORMAT(_invoice,"C$#,##0.##")
)
)
Saludos
Kelly
¿Respondí a su pregunta? ¡Marque mi respuesta como una solución!
Check out the May 2026 Power BI update to learn about new features.
Sign up to receive a private message when registration opens and key events begin.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.