Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
7 years ago
Solved

Allselect except one slicer

Hi,   I have a simple table which I want to create a measure. An extract of the table is here:                               I would like to create a measure, so that when I ...
  • Anonymous's avatar
    Anonymous
    7 years ago

    Hi AlB ,

     

    Thank you for your answer. Unfortunately the measure doesn't work. It returns an error saying that multiple value was returned while a single value was expected. However, I do manage to create a measure that works based on your idea:

     

     

    Measure = 
    
    VAR _Color = CALCULATE(SELECTEDVALUE(Sales[Color]), Sales[Year] = 2010)
    
    RETURN
    CALCULATE(
               SUM(Sales[Sales]),
               ALL(Sales[Product]),
               Sales[Color] = _Color,
               Sales[Year] = 2010
    )

    Thank you again for your help! :smileyhappy:

     

    JC