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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Betty888
Helper II
Helper II

Standard deviation calculation through Power query

Dear all, 

I have an issue with a Power BI File using big data sources. After a quick analysis, I realised that my DAX queries are the reason behind the slowness of my file, so I'm trying to convert most of my DAX queries to the Power query editor. 

I have an issue with the calcultion of Standard deviation for a DATA column that I have to calculate by Grouped data and I can't use the "Group by" function, I need to have an additional calumn containing the standard deaviation . 

Here below the DAX formula that was percectly working for me and that I want to convert to Power query : 

TRT_STD =
CALCULATE ( STDEV.S ( ASSESSMENT [DATA] ), ALLEXCEPT ( Table, Table[group.data] ) )

Thank you in advance for your help ! 

1 REPLY 1
ppm1
Solution Sage
Solution Sage

Although sometimes it is necessary to pre-calculate stuff to improve performance, I would stick with DAX and optimize your model if necessary. This will make your calculations responsive to slicers and overall provide more flexibility in reporting/analysis. Is your model a star schema? How many values in your visual?

 

Pat

 

Microsoft Employee

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.