Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

Reply
Penn
Resolver I
Resolver I

Ayuda a convertir una tabla en un gráfico

Hola a todos

He simplied mi pregunta y cargar un archivo de ejemplo aquí:

https://drive.google.com/file/d/1sLSgz5iNBRoj07_yMIkgzpuXBxwfPVCk/view?usp=sharing

Los datos sin procesar se ven así.

Tabla de casos

Case.jpg

Tabla de fechas

Date.jpg

Lo que estoy tratando de hacer aquí es averiguar al final de cada mes, ¿cuál es el último estado en el que está el caso. Y he creado con éxito una medida y mostrar el resultado en una tabla.

Table.jpg

Pero cuando intenté convertir la tabla en un gráfico de líneas, las cosas se vuelven divertidas. ¿Por qué la línea Recuento de caso disqulifed sigue allí después del 31/10/2019? Lo que espero ver si sólo se desató línea entre 30/06/2019 a 30/09/2019 y sólo convirtió la línea después de 31/10/2019 según la tabla.

Question.jpg

1 ACCEPTED SOLUTION
v-juanli-msft
Community Support
Community Support

Hola @Penn

¿Está bien?

Capture1.JPG

Crear medidas

fill status = CALCULATE(FIRSTNONBLANK('Case'[EOM Status],1),FILTER(ALLSELECTED('Case'),'Case'[EOM Date]<=MAX('Case'[EOM Date])))

Disqulifed = CALCULATE(DISTINCTCOUNT('Case'[Case ID]),FILTER(ALLSELECTED('Case'[Case ID]),'Case'[fill status]="Disqualified"))

converted = CALCULATE(DISTINCTCOUNT('Case'[Case ID]),FILTER(ALLSELECTED('Case'[Case ID]),'Case'[fill status]="Converted"))

la 'date2' es una tabla creada por mí y tiene una relación con la mesa principal

date2 = CALENDARAUTO()

Capture2.JPG

Saludos
Maggie
Equipo de Apoyo Comunitario _ Maggie Li
Si este post ayuda, por favor considere Aceptarlo como la solución para ayudar a los otros miembros a encontrarlo más rápidamente.

View solution in original post

3 REPLIES 3
v-juanli-msft
Community Support
Community Support

Hola @Penn

¿Está bien?

Capture1.JPG

Crear medidas

fill status = CALCULATE(FIRSTNONBLANK('Case'[EOM Status],1),FILTER(ALLSELECTED('Case'),'Case'[EOM Date]<=MAX('Case'[EOM Date])))

Disqulifed = CALCULATE(DISTINCTCOUNT('Case'[Case ID]),FILTER(ALLSELECTED('Case'[Case ID]),'Case'[fill status]="Disqualified"))

converted = CALCULATE(DISTINCTCOUNT('Case'[Case ID]),FILTER(ALLSELECTED('Case'[Case ID]),'Case'[fill status]="Converted"))

la 'date2' es una tabla creada por mí y tiene una relación con la mesa principal

date2 = CALENDARAUTO()

Capture2.JPG

Saludos
Maggie
Equipo de Apoyo Comunitario _ Maggie Li
Si este post ayuda, por favor considere Aceptarlo como la solución para ayudar a los otros miembros a encontrarlo más rápidamente.

Gracias Maggie, funciona bien con el ejemplo, se integrará en mi informe.

Penn
Resolver I
Resolver I

todas las medidas se pueden encontrar en el archivo adjunto

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

February Power BI Update Carousel

Power BI Monthly Update - February 2026

Check out the February 2026 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.