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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
maxhrc
New Member

Standard Deviation of calculate column

Hi, need help to calculate STDV.P in DAX of a calculate column "errore".

 

I can't make STDEV.P(Data[errore]) because PowerBi not see column "errore" as column data.

 

This is code about "errore"

 

errore =
VAR tbl = ADDCOLUMNS( SUMMARIZE( ALL(Data), Data[Data] ), "@val1", [SOT 1], "@val2", [SOT 2] )
VAR tbl_fil = FILTER( tbl, AND( NOT ISBLANK( [@val1] ), NOT ISBLANK( [@val2] ) ) )
VAR result = [SOT 2]-[previsto]
RETURN result

 

 

 

Excuse me....I'm nOOb 🙂

 

Screenshot 2023-10-05 200906.png

 

8 REPLIES 8
HotChilli
Super User
Super User

Screenshot 2023-10-06 173332.png

Excuse me sir, I send the wrong file.

 

This is good

 

https://we.tl/t-pIxM3wIRKg

HotChilli
Super User
Super User

I have the file, thank you.

What are we trying to work out the standard deviation of? The previsto and error measures are missing from the pbix

If u select the table and check previsto and errore in "data" on the right there appear.

 

I need Standard dev of all value present in the errore column.

HotChilli
Super User
Super User

Thanks for the picture.  It looks like previsto, errore, pendenza, intercetta are all measures (so not calculated columns - it does matter)  Maybe we are having some translation issues.

--

If you post a small data sample (not a picture) and show the desired result (i know you want a std deviation but if you can be more detailed i.e. the explicit result then I can try and have a look.

Maybe you can post a link to the pbix (after removing sensitive data)

Yes, of course, excuse missunderstanding, my english is not very well... 😬 Yes are measures....

 

I need a simple standard deviation of column "errore". I make thsi work on excel, but need to translate on PowerBi, on Excel I put this formula: =DEV.ST.C(Tabella_SP_RUS[ERRORE])

 

It's a one number value, on Excel result is: 117,71 circa

 

here my file: https://we.tl/t-BDPVJRA5kV

 

HotChilli
Super User
Super User

This is a calculated column, yes?  But the picture here looks like a table visual.  What does it look like in data view?

--

The variable  - VAR tbl_fil - is unused.

What are previsto, SOT1 and SOT2?

--

If you post a small data sample and show the desired result, that would help

SOT1 and SOT2 are data from excel file. previsto, errore, pendenza, intercetta are calculate value from SOT1 and SOT2

 

I Need calculate a standard dev of alla value from "errore"

 

maxhrc_0-1696531024948.png

maxhrc_1-1696531066836.png

 

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 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
Top Kudoed Authors