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.
Hola 🙂
Quiero poder cambiar el nombre de la columna a la que se hace referencia en una fórmula DAX - por ejemplo aquí quiero poder cambiar el nombre de la columna donde dice "YTD", de modo que esto se base en una selección de segmentación de datos
Es lo suficientemente fácil para cambiar los otros valores (por ejemplo, . Hice una fórmula que usa una entrada de segmentación de datos en lugar del valor "Turnover" codificado de forma rígida en la fórmula anterior... pero me pregunto si es posible también hacer que el nombre de la columna entre corchetes una variable?
¿Es posible?
¡¡Gracias!!
Alex
Solved! Go to Solution.
@djalexr No exactamente dentro de los corchetes, pero podría probar una función SWITCH para obtener el resultado que busca:
Este es un ejemplo que inventé:
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
¡Muchas gracias por esto! Sí, pude solucionar esto usando la función SWITCH.
Gracias de nuevo
Alex
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
@djalexr No exactamente dentro de los corchetes, pero podría probar una función SWITCH para obtener el resultado que busca:
Este es un ejemplo que inventé:
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
Sé que llego muy tarde a la fiesta. Pero, ¿es factible obtener el archivo de ejemplo pbix que hace esto?
no te preocupes, me parece cómo hacerlo? 🙂
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
2 | |
1 | |
1 | |
1 | |
1 |
User | Count |
---|---|
2 | |
2 | |
2 | |
2 | |
1 |