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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
EZiamslow
Helper III
Helper III

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
July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 community update carousel

Fabric Community Update - June 2025

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