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

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
Super User
Super User

@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])


@ 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!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

View solution in original post

mahoneypat
Employee
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
Employee
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
Super User
Super User

@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])


@ 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!:
The Definitive Guide to Power Query (M)

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
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.