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

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.

Reply
EEEhernan8
Regular Visitor

AYUDA PARA CREAR MEDIDA

Tengo dos columas, una que me dice la causa de detención (primera columna de la imagen), y una que me indica si un viaje se encuentra a tiempo o retrasado (ultima columna de la imagen):

EEEhernan8_1-1664066970116.png

 

 

Lo que quiero hacer es crear una medida que me ayude a contar el numero de veces que se repite una causa, pero que solo lo haga con los viajes que tienen las condición "Retrasado". Esta medida la voy a utilizar para crear una visualización del tipo anillo, como esta:

 

EEEhernan8_2-1664067088791.png

 Espero me puedan ayudar!!!

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

Hi @EEEhernan8 ,

 

This is my test table:

vyadongfmsft_0-1664172514628.png

 

Creat a measure:

 

 

Measure = CALCULATE(COUNT('Table'[Causa]),FILTER('Table','Table'[Condicion] = "RETRASADO"))

 

 

 

vyadongfmsft_1-1664172705076.png

 

Best regards,

Yadong Fang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

3 REPLIES 3
v-yadongf-msft
Community Support
Community Support

Hi @EEEhernan8 ,

 

This is my test table:

vyadongfmsft_0-1664172514628.png

 

Creat a measure:

 

 

Measure = CALCULATE(COUNT('Table'[Causa]),FILTER('Table','Table'[Condicion] = "RETRASADO"))

 

 

 

vyadongfmsft_1-1664172705076.png

 

Best regards,

Yadong Fang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Anonymous
Not applicable

Hola,

 

Se me ocurre que puedes hacer lo siguiente:

Primero crearia la siguiente medida: Medida1 = SUM (NombreTabla [causa de detencion]

 

Luego crearia lo siguiente : Medida2 = Calculate ( [Medida1] , NombreTabla[condicion] = retrasado )

 

Luego en el grafico la medida 2 la pondria como valores y en leyenda colocaría causa de detencion.

 

Avisame como te va con eso

No reconoce la medida, me aparece como error.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.

Top Solution Authors