cancel
Showing results for
Did you mean:

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Regular Visitor

## Calculate stdv.p measure for a specific range of time

Hello,

I currently use

STDVP = STDEV.P(Table[average])

but Im trying to make a measure that calculate the stdv.p in the table but only for a certain period of time.

So I have a Table that look like this

 date average 2023-03-01 4 2023-03-02 5 2023-03-03 8 2023-03-04 4 2023-03-05 6 2023-03-06 9 2023-03-07 3 2023-03-08 1 2023-03-09 12 2023-03-10 6

I absolutly need the whole table but if I want to calculate only for dates 2023-03-01 to 2023-03-06, how would I do that?

Thank you

1 ACCEPTED SOLUTION
Regular Visitor

I found a way

STDVMeasure = CALCULATE(
STDEV.P(Table[average),
DATESBETWEEN(
Table[date],
date(2022,04,01),
date(2023,03,31)
)
)

4 REPLIES 4
Regular Visitor

Thank you for the response, but I have to make this measure in around 50 differents, non related table in my dashboard, using a slicer would be less than optimal

Super User

To be able to help, I recommend fully and clearly describing what is required and what the desired result is.

Regards,
Rita Fainshtein | Microsoft MVP
Regular Visitor

I found a way

STDVMeasure = CALCULATE(
STDEV.P(Table[average),
DATESBETWEEN(
Table[date],
date(2022,04,01),
date(2023,03,31)
)
)

Super User

Hi @JeremieA
You can slice your measure in several ways.

For example :
You can create a calendar table

Create a relationship with your data table:

And put the date from the calendar on your slicer

From this moment your measure is dynamic

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

Regards,
Rita Fainshtein | Microsoft MVP

Announcements

#### Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

#### Power BI Monthly Update - July 2024

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

#### Fabric Community Update - July 2024

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

Top Solution Authors
Top Kudoed Authors