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
mrothschild
Continued Contributor
Continued Contributor

calculating standard deviations from Matrix visual

PBIX file is here: https://www.dropbox.com/s/uasonb98zmz41xw/ATV%2C%20growth%20and%20indexing.pbix?dl=0

 

I have a matrix visual that appears as follows, except for the StdDev column on the right.  That column is what I'm trying to calculate and is the desired output - I don't need it in the Matrix visual, but do need the values associated with Low/Mid/High rows, and need it to be dynamic, as the Matrix visual will eventually be filtered by slicers.  The StdDev column is the Standard Deviation of the annual % change in the upper table, calculated from the lower table.

 

Thanks!

 

 20082009201020112012201320142015201620172018StdDev
Low$624$990$914$812$926$914$893$926$846$847$76220.8%
Mid$512$841$771$685$780$779$808$819$751$739$64522.7%
High$454$709$670$582$645$651$699$696$628$609$40423.0%

 

 20082009201020112012201320142015201620172018StdDev
Low 58.6%(7.7%)(11.1%)14.0%(1.3%)(2.3%)3.6%(8.6%)0.2%(10.1%)20.8%
Mid 64.4%(8.3%)(11.2%)13.8%(0.1%)3.8%1.3%(8.3%)(1.6%)(12.7%)22.7%
High 56.2%(5.4%)(13.2%)10.9%0.8%7.4%(0.4%)(9.8%)(3.1%)(33.7%)23.0%
1 ACCEPTED SOLUTION
v-jiascu-msft
Microsoft Employee
Microsoft Employee

Hi @mrothschild,

 

Please try this measure.

Measure =
VAR a =
    SELECTCOLUMNS ( 'Data', "value", [Value] )
RETURN
    STDEVX.S (
        SUMMARIZE ( 'Data', 'Calendar'[Year], Data[Attribute] ),
        IF ( [Annual % change] <= 1, [Annual % change], BLANK () )
    )

calculating-standard-deviations-from-Matrix-visual

 

BTW, DO NOT share anything confidential here.

 

Best Regards,

Community Support Team _ Dale
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
v-jiascu-msft
Microsoft Employee
Microsoft Employee

Hi @mrothschild,

 

Please try this measure.

Measure =
VAR a =
    SELECTCOLUMNS ( 'Data', "value", [Value] )
RETURN
    STDEVX.S (
        SUMMARIZE ( 'Data', 'Calendar'[Year], Data[Attribute] ),
        IF ( [Annual % change] <= 1, [Annual % change], BLANK () )
    )

calculating-standard-deviations-from-Matrix-visual

 

BTW, DO NOT share anything confidential here.

 

Best Regards,

Community Support Team _ Dale
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Thank you!

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.