Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
EZiamslow
Helper II
Helper II

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

 

Control.JPG

 

1 ACCEPTED SOLUTION
d_gosbell
Super User
Super User


@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.

View solution in original post

2 REPLIES 2
d_gosbell
Super User
Super User


@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.


@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. 

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.