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

how to find standard deviation in power bi

Hi,

I have a dataset, here is a screenshot of how i dragged the columns into a table in power bi, i want to find the standard deviation in count of part numbers with respect to priority every month, TIA.

 

Jack11_0-1596361885963.png

 

3 ACCEPTED SOLUTIONS
Fowmy
Super User
Super User

@Anonymous 

Try as a new column:

STD = 
CALCULATE(
    STDEV.P(Table02[COUNT]),

    ALLEXCEPT(Table02,Table02[MONTH],Table02[PRIORITY])
)



________________________

Did I answer your question? Mark this post as a solution, this will help others!.

Click on the Thumbs-Up icon on the right if you like this reply 🙂

YouTube, LinkedIn





Did I answer your question? Mark my post as a solution! and hit thumbs up


Subscribe and learn Power BI from these videos

Website LinkedIn PBI User Group

View solution in original post

Greg_Deckler
Community Champion
Community Champion

@Anonymous - There are 4 standard deviation functions in DAX, STDEV.P, STDEV.S, STDEVX.P, STDEVX.S. If your data represents the entire population, use .P version, otherwise if it is a sample, use the .S version. You should be able to put month and priority in a visual and simply have a measure:

 

Measure = STDEV.P('Table'[Count of Part Number])



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

View solution in original post

mahoneypat
Microsoft Employee
Microsoft Employee

To do this as a measure, you can use this expression

 

Count STD =
VAR __summarytable =
    SUMMARIZE (
        Table,
        Table[Priority],
        Table[Month],
        "@count", COUNT ( Table[Part Number] )
    )
RETURN
    STDEVX.P ( __summarytable, [@count] )

 

If this works for you, please mark it as the solution.  Kudos are appreciated too.  Please let me know if not.

Regards,

Pat





Did I answer your question? Mark my post as a solution! Kudos are also appreciated!

To learn more about Power BI, follow me on Twitter or subscribe on YouTube.


@mahoneypa HoosierBI on YouTube


View solution in original post

4 REPLIES 4
mahoneypat
Microsoft Employee
Microsoft Employee

To do this as a measure, you can use this expression

 

Count STD =
VAR __summarytable =
    SUMMARIZE (
        Table,
        Table[Priority],
        Table[Month],
        "@count", COUNT ( Table[Part Number] )
    )
RETURN
    STDEVX.P ( __summarytable, [@count] )

 

If this works for you, please mark it as the solution.  Kudos are appreciated too.  Please let me know if not.

Regards,

Pat





Did I answer your question? Mark my post as a solution! Kudos are also appreciated!

To learn more about Power BI, follow me on Twitter or subscribe on YouTube.


@mahoneypa HoosierBI on YouTube


negi007
Community Champion
Community Champion

@Anonymous  Below screenshot can help you in creating the measure

Standard Dev.PNG

 




Did I answer your question? Mark my post as a solution!
Appreciate your Kudos



Proud to be a Super User!


Follow me on linkedin

Greg_Deckler
Community Champion
Community Champion

@Anonymous - There are 4 standard deviation functions in DAX, STDEV.P, STDEV.S, STDEVX.P, STDEVX.S. If your data represents the entire population, use .P version, otherwise if it is a sample, use the .S version. You should be able to put month and priority in a visual and simply have a measure:

 

Measure = STDEV.P('Table'[Count of Part Number])



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...
Fowmy
Super User
Super User

@Anonymous 

Try as a new column:

STD = 
CALCULATE(
    STDEV.P(Table02[COUNT]),

    ALLEXCEPT(Table02,Table02[MONTH],Table02[PRIORITY])
)



________________________

Did I answer your question? Mark this post as a solution, this will help others!.

Click on the Thumbs-Up icon on the right if you like this reply 🙂

YouTube, LinkedIn





Did I answer your question? Mark my post as a solution! and hit thumbs up


Subscribe and learn Power BI from these videos

Website LinkedIn PBI User Group

Helpful resources

Announcements
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!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

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