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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

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
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors