Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
6 years ago
Solved

Slicers on calculated columns

Hi all,   I'm feeling a particular frustration with one of my visualisations.   I have a data table which looks something like   Date Type Count 01/09/2020 A 1 01/09/2020 B 2 ...
  • v-deddai1-msft's avatar
    v-deddai1-msft
    6 years ago

    Hi Anonymous ,

     

    Would you please try to use the following measure:

     

     

    Measure =
    VAR A =
        MAX ( 'Date'[Date] )
    RETURN
        CALCULATE (
            SUM ( 'Plant Forecasts'[Selection_Count] ),
            ALLSELECTED ( 'Plant Forecasts'[Plant Type] ),
            'Plant Forecasts'[StartDate] <= A,
            'Plant Forecasts'[EndDate] > A,
            'Plant Forecasts'[StageCode_Name] <> "Won"
        )

     

     

     

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

     

    Best Regards,

    Dedmon Dai