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.
Estimados todos los expertos en PBI,
Tengo el ejemplo de la tabla como se muestra a continuación:
Tarea | Valor |
Ind123 | FALSO |
Ind345 | VERDADERO |
Ind567 | FALSO |
Ind789 | VERDADERO |
Fam123 | FALSO |
Fam345 | VERDADERO |
Fam567 | FALSO |
Fam789 | VERDADERO |
Me gustaría crear un gráfico de columnas apiladas para mostrar los diferentes valores de tarea para Ind y Fam. ¿Cómo es esto posible?
Gracias.
Solved! Go to Solution.
Hay @hidzirf ,
Cree una columna con el siguiente código:-
Column =
IF ( CONTAINSSTRING ( [Task], "Ind" ), "Ind", "Fam" )
Ahora cree dos medidas como las siguientes:
_true =
COUNTROWS ( FILTER ( 'Table', 'Table'[Value] = TRUE () ) )
_false =
COUNTROWS ( FILTER ( 'Table', 'Table'[Value] = FALSE () ) )
Salida:-
Gracias
Samarth
Hay @hidzirf ,
Cree una columna con el siguiente código:-
Column =
IF ( CONTAINSSTRING ( [Task], "Ind" ), "Ind", "Fam" )
Ahora cree dos medidas como las siguientes:
_true =
COUNTROWS ( FILTER ( 'Table', 'Table'[Value] = TRUE () ) )
_false =
COUNTROWS ( FILTER ( 'Table', 'Table'[Value] = FALSE () ) )
Salida:-
Gracias
Samarth
Querido Samarth,
Lo he intentado y esto ha resuelto mi problema.
Muchas gracias por su ayuda.
@hidzirf
Puede crear dos medidas
calculate(count(Value), filter(tablename, value = "True")
calculate(count(Value), filter(tablename, value = "false")
y use estas medidas en el gráfico Valores en barras apiladas y obtendrá el resultado requerido.
Hi VijayP,
Gracias por la orientación, pero desafortunadamente, el resultado no sale como lo que se requiere. Necesito agrupar "Ind" y "Fam" por separado. El gráfico de barras debe mostrar que el recuento de valor "Ind" es 4 con 2 false y 2 true, lo mismo ocurre con "Fam".
¿Apreciarlo si hay alguna solución mejor para esto? Gracias.
@hidzirf
¿Desea mostrar el recuento de verdadero y falso por separado? ¿Cómo debería ser el resultado?
Hi VijayP,
Gracias por su respuesta. Sí, me gustaría mostrar el Verdadero y el Falso por separado para cada tipo de tarea. El resultado se mostrará así:
Gracias.
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 |