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

Excluir cliente de total facturación

Buenas, 

 

¿Se podría excluir de alguna forma dos clientes del total de facturación? 

 

Mi medida dax para calcular el total de facturación es: https://gyazo.com/170750e5e8236d14d59d95b4108b1c82 

 

Ambos clientes tienen su key, los cuales son: 1 y 3 respectivamente: https://gyazo.com/60cdcb7aa45052a1e55a199b665618be 

1 ACCEPTED SOLUTION
Icey
Community Support
Community Support

Hola @Alejandro-Glez ,

Trate de crear otra medida basada en su"Facturación Total"medida así:

Measure =
CALCULATE (
    [Total Facturacion],
    FILTER ( FactVentas, NOT ( FactVentas[ClientKey] IN { 1, 3 } ) )
)

Saludos

Icey

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

View solution in original post

4 REPLIES 4
vanessafvg
Super User
Super User

usted podría hacer

medida :
Fue medida - medida1 + medida2
devolución
Calcular ( Medida Filtro ( Mesa No ( customerkey En { "Una", "Dos" } ) ) )





If I took the time to answer your question and I came up with a solution, please mark my post as a solution and /or give kudos freely for the effort 🙂 Thank you!

Proud to be a Super User!




amitchandak
Super User
Super User

@Alejandro-Glez , You can have measure like

Ejemplo

filtrar meausre á calculate([Facturation total], filter(Table, not(Table[customer] in 'Customer1',"Customer2" ?)))

O sólo eliminar en total


if (isfiltered(Table[customer]), [Total Billing],[filter meausre])

Anonymous
Not applicable

No entendí muy bien su respuesta.

 

Le dejo captura de los clientes y las tablas. El objetivo es que los clientes con la Key "1" y "3" no se tengan en cuenta para la facturación total.

https://gyazo.com/79c43b8933cf769cfeb8e2aef8ed228f 

https://gyazo.com/4fec3053e532392f5b84763a68ee9121 

https://gyazo.com/892de8128d60ef2a64474743d0141234 

Icey
Community Support
Community Support

Hola @Alejandro-Glez ,

Trate de crear otra medida basada en su"Facturación Total"medida así:

Measure =
CALCULATE (
    [Total Facturacion],
    FILTER ( FactVentas, NOT ( FactVentas[ClientKey] IN { 1, 3 } ) )
)

Saludos

Icey

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

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.