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
Anonymous
Not applicable

¿Cómo filtrar una medida?

Hola

Creé una medida

EBITDA [Beneficio bruto]-[SGA]
que se deriva de:
Beneficio bruto : 'Tabla de medidas'[Ingresos]-'Tabla de medidas'[COR]
SGA - SUM('values'[SGA Value])
Ingresos: sum('values'[Valor de ingresos])
Quiero poner un filtro en EBITDA para excluir el valor cero. He probado EBITDA - filter([Gross Profit]-[SGA],EBITDA-0). Pero esto no funcionó porque el primer argumento necesita una tabla.
¿Qué código DAX debo escribir para excluir el EBITDA cero de la matriz viz.?
2 ACCEPTED SOLUTIONS
amitchandak
Super User
Super User

@ShriHanuman , estoy de acuerdo con @parry2k tener un filtro de nivel visual. Eso sería más efectivo.

La condición de filtro necesita un nombre de tabla para que haya probado como

nuevo EBITDA: calculate([EBITDA], filter('Values',EBITDA<>0))

View solution in original post

@ShriHanuman

El segundo EBITA también estará en [] . [EBITA] <> 0

View solution in original post

6 REPLIES 6
amitchandak
Super User
Super User

@ShriHanuman , estoy de acuerdo con @parry2k tener un filtro de nivel visual. Eso sería más efectivo.

La condición de filtro necesita un nombre de tabla para que haya probado como

nuevo EBITDA: calculate([EBITDA], filter('Values',EBITDA<>0))

Anonymous
Not applicable

@amitchandak Recibo el siguiente error al escribir la fórmula. EBITDA no es una columna de la tabla "valores", es una medida calculada.

EBITDA Measure.PNG

@ShriHanuman

El segundo EBITA también estará en [] . [EBITA] <> 0

Anonymous
Not applicable

@Chan Gracias por la respuesta. ¿Podría por favor hágamelo saber por qué los corchetes para la materia EBITDA y la sintaxis para el filtro es filter(table, expression). La tabla "value" no contiene EBITDA, es una medida. Entonces, ¿cómo funciona la ecuación de filtro?

parry2k
Super User
Super User

@ShriHanuman puede utilizar el fitro de nivel visual y filtrar EBITDA no es igual a cero

Pregunte cualquier cosa Power BI. Reserve una cita gratuita en https://www.perytus.com



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

Anonymous
Not applicable

Gracias por la respuesta.

Probé el filtro visual, pero no funcionó. ¿Se debe a que EBITDA es una medida y no una columna de la tabla values?

EBITDA.PNG

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.