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
Anonymous
Not applicable

Standard deviation for sum of weekly

Data table  
Device IDDate timeSKU
Device 1dd/mm/yy hh:mm:ssSku1
Device 2dd/mm/yy hh:mm:ssSku2
Device 3dd/mm/yy hh:mm:ssSku3
Device 4dd/mm/yy hh:mm:ssSku1
Device 5dd/mm/yy hh:mm:ssSku1
Device 1dd/mm/yy hh:mm:ssSku1
Device 2dd/mm/yy hh:mm:ssSku2
Device 3dd/mm/yy hh:mm:ssSku3
Device 4dd/mm/yy hh:mm:ssSku3
Device 5dd/mm/yy hh:mm:ssSku10
Device 6dd/mm/yy hh:mm:ssSku11
Device 7dd/mm/yy hh:mm:ssSku12
Device 8dd/mm/yy hh:mm:ss

Sku13

 

the QTY of SKU is always 1 for each line of event, so the number of consumption is : Count [SKU] ( or count any column in that table) 

I have a calendar table for assigning week number

 

How do i get the the StD in PBI? 

Capture.PNG

2 REPLIES 2
v-lili6-msft
Community Support
Community Support

hi  @Anonymous 

For your case, create a measure as below:

Measure = STDEVX.P('calendar',CALCULATE(COUNTA('Table'[SKU])))

 

https://docs.microsoft.com/en-us/dax/stdevx-p-function-dax

 

Regards,

Lin

Community Support Team _ Lin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
pranit828
Community Champion
Community Champion

Hi @Anonymous 

create a column as

_weeknum = WEEKNUM('Table'[Date Time])

 

then create a measure as 

Std_Dev_Qty = CALCULATE(STDEV.P(table[SKU]),ALLEXCEPT(table,table[Devide ID],Email[Dow]))

 

Change SKU to the desired column on which you need the STDV.P





PBI_SuperUser_Rank@1x.png


Hope it resolves your issue? 
Did I answer your question? Mark my post as a solution!

Appreciate your Kudos, Press the thumbs up button!!
Linkedin Profile

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.