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
VIrajMP
Frequent Visitor

Recuento de clientes con un importe de corretaje en blanco

Hola

Estoy tratando de conseguir un recuento de clientes que han dado corretaje durante el último mes, independientemente de los clientes que dan corretaje en el mes actual. He creado 2 medidas (TM Net Brokerage y LM Net Brokerage) como se indica a continuación.

Corretaje de red DE TM (TM Net Brokerage)

IF(ISBLANK([Net Brokerage]),0,
CALCULATE([Net Brokerage],
FILTER(Values(ActualswithTargetIncome[Partykey]),
IF([Net Brokerage] < 5000
&& [Net Brokerage LM] > 25000, [Net Brokerage],BLANK())))
)
Intermediación de red de LM ( LM Net Brokerage)
IF(ISBLANK([Net Brokerage LM]),BLANK(),
CALCULATE([Net Brokerage LM],
FILTER(Values(Customer[CustomerNameCode]),
IF([Net Brokerage] < 5000
&& [Net Brokerage LM] > 25000, [Net Brokerage LM],BLANK()))
)
NoofCustomers ?
IF(ISBLANK([Net Brokerage]),1,
COUNTROWS(
FILTRO (
ADDCOLUMNS (
VALORES ( ActualswithTargetIncome[Partykey] ),
"NetBrok", CALCULATE ( [Net Brokerage] ),
"NetBrokLM", CALCULATE([Net Brokerage LM])),
[NetBrok] < 5000 && [NetBrokLM] > 25000 )
)
)
El siguiente objeto visual me da el resultado deseado cuando se ve por pcode, sin embargo, no puedo obtener el no correcto de los clientes (cuando se coloca en una tarjeta visual) que en este caso debe ser 8. Supongo que ignora las celdas en blanco (que he reemplazado por 0 en el TM Net Brokerage) y cuenta sólo las filas donde existe el corretaje.

CountCustomers.png

Me gustaría tener el recuento como 8, es decir, incluir los espacios en blanco, Apreciará, si alguien podría ayudarme con la medida dax para obtener el resultado deseado.

Gracias y saludos

Viraj

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@VIrajMP , Probar medidas como

NoofCustomers á countx(values(Table[pcode]), if([TM Net Brokerage] á 0 á isblank([TM Net Brokerage]) ,0,1))

NoofCustomers á countx(values(Table[customer ID]), if([TM Net Brokerage] ?0 - isblank([TM Net Brokerage]) ,0,1))

View solution in original post

2 REPLIES 2
v-lionel-msft
Community Support
Community Support

Hola @VIrajMP ,

Consulte los enlaces.

Cómo lidiar con los totales de medidas

Power BI: Totales incorrectos

Si el problema aún no se ha resuelto, comparta el archivo .pbix o los datos de ejemplo.

Saludos
Lionel Chen

Si este post ayuda,entonces considere Aceptarlo como la solución para ayudar a los otros miembros a encontrarlo más rápidamente.

amitchandak
Super User
Super User

@VIrajMP , Probar medidas como

NoofCustomers á countx(values(Table[pcode]), if([TM Net Brokerage] á 0 á isblank([TM Net Brokerage]) ,0,1))

NoofCustomers á countx(values(Table[customer ID]), if([TM Net Brokerage] ?0 - isblank([TM Net Brokerage]) ,0,1))

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.