Forum Discussion

ManuPulgar's avatar
ManuPulgar
Regular Visitor
1 year ago
Solved

Formula dax

Estimados necesito ayuda con alguna formula dax que me sume solo los valores una sola vez. La tabla está de la siguiente manera:   Vendedor.      Clientes José Pérez        86 José Pérez.       ...
  • shafiz_p's avatar
    1 year ago

    Hi ManuPulgar  Try below code for summing up distinct value by Vendedor:

    DistinctSum = SUMX(
        SUMMARIZE(
            'Table',
            'Table'[Vendedor.],
            "DistinctClientes",
            DISTINCT('Table'[Clientes])
        ),
        [DistinctClientes]
    )

     

     

     

    Hope this helps!!

    If this solved your problem, please accept it as a solution!!

     

     

    Best Regards,
    Shahariar Hafiz

  • Jihwan_Kim's avatar
    1 year ago

    Hi,

    I am not sure how your semantic model looks like, but please check the below picture and the attached pbix file.

    I tried to create a sample pbix file like below.

     

     

     

    expected result measure: =
    VAR _t =
        SUMMARIZE (
            Sales,
            Sales[Vendor],
            Sales[Sales]
        )
    RETURN
        SUMX (
            _t,
            Sales[Sales]
        )