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

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.

Reply
Anonymous
Not applicable

DAX Formula

Hi all,

 

The formula below is used in excel for column CoV.

=IFERROR(STDEV.S(B6:CN6)/CP6,0)

 

Megha3012_0-1642167254373.png

 

How can I implement the same in PowerBI Matrix visual?

Any help is appreciated!

Thank you!

Megha

1 ACCEPTED SOLUTION

Sure. Maybe like this?

DIVIDE (
    STDEV.S ( Table1[Quantity_1] ),
    AVERAGE ( Table1[Quantity_1] )
)

View solution in original post

8 REPLIES 8
smpa01
Super User
Super User

@Anonymous  best practice, unpivot first

Did I answer your question? Mark my post as a solution!
Proud to be a Super User!
My custom visualization projects
Plotting Live Sound: Viz1
Beautiful News:Viz1, Viz2, Viz3
Visual Capitalist: Working Hrs
Anonymous
Not applicable

Hi @smpa01 , Thank you!

 

Its not Pivot in PowerBI.

Thats the excel screenshot which I put.

I would like to implement that formula, =IFERROR(STDEV.S(B6:CN6)/CP6,0) in PowerBI Matrix visual.

This is how Matrix Visual look like:

Megha3012_0-1642170550939.png

How can I do that?

 

Any help is appreciated!

 

Thank you!

Megha

@Anonymous  how does your data look like? Is it pivoted or unpivoted?

Did I answer your question? Mark my post as a solution!
Proud to be a Super User!
My custom visualization projects
Plotting Live Sound: Viz1
Beautiful News:Viz1, Viz2, Viz3
Visual Capitalist: Working Hrs
Anonymous
Not applicable

Its unpivoted. This is how it looks like.

Megha3012_0-1642171441949.png

But in Report field, I am using a Matrix visual, so that my data can look like this.

Megha3012_2-1642171537344.png

 

In Matrix visual, I would like to add a calculated column. I know the formula for excel version which is "=IFERROR(STDEV.S(B6:CN6)/CP6,0)" but not PowerBI. So I would like to know to create a column in the above visual and implement that formula.

 

Thank you!
Megha

 

Since we can't see what is in your ranges B6:CN6 and CP6, it would be useful to share what the formula is computing. The standard deviation of what divided by what?

Anonymous
Not applicable

Oh yes. Sorry! @AlexisOlson 

I have attached an other screenshot.

Megha3012_0-1642176081203.png

 

I couldnt really capture the whole, but the range starts from B6.

I would like to implement the column "CoV" in PowerBI 'Matrix visual'.

 

Thank you!

Megha

Anonymous
Not applicable

Hi @AlexisOlson 

Is there a way I can implement that excel formula in the Matrix visual PowerBI?

 

Thank you for your help!

-Megha

Sure. Maybe like this?

DIVIDE (
    STDEV.S ( Table1[Quantity_1] ),
    AVERAGE ( Table1[Quantity_1] )
)

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.