Forum Discussion

EZiamslow's avatar
EZiamslow
Icon for Helper III rankHelper III
7 years ago
Solved

Dynamic column calculate based on slicer date range and filter by two parameters

I created some process control charts with a slicer on top by date. I need help with calculating average, stdev, and other info based on slicer date range by Step and Product. Is it possible to calculate for what I need? What would be the best option?

 

Date_TimeIDStepDataProduct
10/13/18 7:11 PM128396DEF7.46MMM
10/14/18 8:08 PM128346ABC9.634YYY
10/14/18 9:47 PM128350ABC9.565YYY
10/14/18 10:02 PM128348ABC9.617YYY
10/14/18 10:42 PM128373ABC9.682YYY
12/13/18 8:00 PM128351ABC9.77YYY
12/13/18 11:13 PM128349ABC9.772YYY
12/13/18 11:24 PM128314ABC9.759YYY
12/14/18 4:35 PM128308ABC9.736YYY
12/16/18 10:21 AM128351DEF7.466YYY
12/16/18 1:29 PM128314DEF7.442MMM
12/16/18 1:37 PM128349DEF7.431MMM
12/22/18 3:43 PM128292DEF7.426MMM
12/22/18 4:02 PM128348DEF7.435MMM
12/22/18 4:47 PM128373DEF7.403MMM
12/23/18 4:52 PM128350DEF7.406MMM
12/23/18 5:01 PM128390DEF7.444MMM
12/23/18 8:38 PM128394DEF7.433MMM
12/26/18 1:18 PM128354DEF7.481YYY
12/26/18 1:25 PM128308DEF7.438MMM
12/26/18 1:30 PM128325DEF7.447MMM
12/26/18 1:35 PM128817DEF7.524YYY

 

 


  • EZiamslow wrote:

    I created some process control charts with a slicer on top by date. I need help with calculating average, stdev, and other info based on slicer date range by Step and Product.


    This should just be a matter of creating a couple of measures

    eg.

    Avg Data = AVERAGE( Table1[Data] )
    Stdev Data = STDEV.P( Table1[Data] )

    (note I've just used "table1" as a placeholder for your table name)

     

    By default these should pull in the current context from any slicers.

2 Replies


  • EZiamslow wrote:

    I created some process control charts with a slicer on top by date. I need help with calculating average, stdev, and other info based on slicer date range by Step and Product.


    This should just be a matter of creating a couple of measures

    eg.

    Avg Data = AVERAGE( Table1[Data] )
    Stdev Data = STDEV.P( Table1[Data] )

    (note I've just used "table1" as a placeholder for your table name)

     

    By default these should pull in the current context from any slicers.

    • EZiamslow's avatar
      EZiamslow
      Icon for Helper III rankHelper III

      d_gosbell wrote:

      EZiamslow wrote:

      I created some process control charts with a slicer on top by date. I need help with calculating average, stdev, and other info based on slicer date range by Step and Product.


      This should just be a matter of creating a couple of measures

      eg.

      Avg Data = AVERAGE( Table1[Data] )
      Stdev Data = STDEV.P( Table1[Data] )

      (note I've just used "table1" as a placeholder for your table name)

       

      By default these should pull in the current context from any slicers.


       

      That should be easy then. I didn't know slicers will filter out the column calculation for me. I'm over-complicating things. haha.