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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
AliNafa
Frequent Visitor

Calculating Standard Deviation on Power Bi

Hello,

I'm trying to calculate the Standard Deviation on power bi for QTY sold for an item Id for the last 52 Weeks.

I did it on excel using ( STDEV ) function and i got the result number on column named ( STDEV_by_Item_ID on EXCEL ) =
24919.5784062567

i was trying to get the same exact result on excel  ( 24919.5784062567 ) on powerbi Dax using the funcation ( STDEVX.P ) but i got antother different number.  Is there a way to get the exact reault number on power bi ?  I tried too many functions on power bi with no luck.

s111w.jpg


i have attached the ppix file on the link below. I hope i can find soultion on the same ppix file.
https://we.tl/t-OZvZrAM401

Thank you !

2 REPLIES 2
Padycosmos
Solution Sage
Solution Sage

You need to unpivot the weekly data into 2 columns one containing the Week numbers and the other containing the values. Unable to unpivot your pbix file because the source file in excel is not available. The following video will help you with unpivot 

https://www.youtube.com/watch?v=SLZGWy2OUPo&list=PLApPcvU5-R24K3mbxORV7T3ckVLfDjmHF&index=29

AliNafa
Frequent Visitor

Up

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.