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
fsantos
Regular Visitor

Resultado filtrar valor distinto con campo

Hola expertos,

¿Cómo puedo cuando no se utiliza un filtro de fecha, hace una selección distinta basada en un campo??


Tengo el caso de que el pedido de ventas tiene dos fechas, una para la oportunidad y la otra para la previsión de ventas, si selecciono la fecha, tiene que aparecer, si no filtro nada, quería que mostrara el pedido de ventas sólo una vez (seleccione distinto).

Ejemplo:

2020-07-28 14_30_45-Window.png

Rgs

Fabio

2 REPLIES 2
amitchandak
Super User
Super User

@fsantos, puede usar se filtra para comprobar si los datos se filtran o no.

si no se filtra

el uso de la medida para el valor

lastnonblankvalue(Table[Date], sum(Table[Value]))

else use sum(Table[Value])

recomienda

https://powerpivotpro.com/2013/03/hasonevalue-vs-isfiltered-vs-hasonefilter/

Yo uso o SUMX con DISTINCT.

VALOR DE SUMA: SUMX(DISTINCT(Planilha1[Pedido de ventas]),FIRSTNONBLANK(Planilha1[Value],0))
Rgs
Fabio

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.