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.
Así que tengo una tabla que tiene una columna con valores y otra con la categoría "Nacional" o "Internacional". ¡Necesito calcular el porcentaje promedio de los valores en la categoría nacional! Y sólo devolver el valor en % para que pueda verlo en una tarjeta.
Este es el tipo de datos que tengo
Categoría | Valor |
Nacional | 113,240,040 |
Importador | 106,828,146 |
Nacional | 97,134,688 |
Importador | 94,064,210 |
Importador | 90,575,333 |
Nacional | 35,319,980 |
Y la necesidad de devolver este visual
He hecho esto
National =CALCULATE(COUNTA('SEGUIMIENTO'[Category]),'SEGUIMIENTO'[Value] IN { "Nacional" })
%National =DIVIDE([National], COUNTA('SEGUIMIENTO'[Value]))
Pero no ajusta la respuesta correcta
Solved! Go to Solution.
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
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
Hola Alison,
gracias por responder.
Pero la respuesta me da un porcentaje del 96% y debería ser 86 hay algo que power bi no me está entendiendo 😂. Lo necesito no para contar las filas, sino el porcentaje del dinero total. No sé si me entiendes. Si lo hago en un pastel me muestra la respuesta correcta.
Pero, muy supervisor quiere verlo en una tarjeta.
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
Yeyy thank you.
Im new on this matter i've learned all by myself but at work i always find something more challenging stuff!
💌
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
I have it in spanish but,
Like you see in the image below
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 | |
1 | |
1 |