Forum Discussion

nj-matt's avatar
nj-matt
Helper I
3 years ago
Solved

Help with ALLSELECTED by specific column summarized

I think there is a solve somewhere I am not thinking, but here is what I am trying to accomplish using the ALLSELECTED dax to summarize total sales -->   Customer Product Sales Total Sales ...
  • MohammadLoran25's avatar
    3 years ago

    Hi nj-matt ,

    Try this:

    Measuree =
    CALCULATE (
        SUM ( CustomerProductSales[Sales] ),
        FILTER (
            ALLSELECTED ( CustomerProductSales ),
            CustomerProductSales[Product] = SELECTEDVALUE ( CustomerProductSales[Product] )
        )
    )

     

    It helped? Mark it as an accepted solution.

    Regards,

    Loran