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
Anonymous
Not applicable

Sqrt in Column

Hello Everyone!

 

I want to calculate the SQRT of a column, I have a table like this: 

Sqr.PNG

I just need de Sqrt Value of the "P Value" column, i use the following formula: 

 

P Lote = SQRT('PQI Lote'[P Value])
P Lote = SQRT(ROUNDUP('PQI Lote'[P Value],1))
 
But I have an error in both of the calculated columns about the value being too big or two small, 
 
I would appreciate some help!
1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Anonymous 

 

The problem lies in the data type used for this calculated value

pranit828_0-1597940541107.png

 

I recreated your scenario and below is the formula I would use.

P Lote = SQRT(VALUE('PQI Lote'[P Value]))

 

Below is the ouput I get:

pranit828_1-1597940692147.png

 

 

View solution in original post

8 REPLIES 8
Anonymous
Not applicable

Hi @Anonymous 

 

The problem lies in the data type used for this calculated value

pranit828_0-1597940541107.png

 

I recreated your scenario and below is the formula I would use.

P Lote = SQRT(VALUE('PQI Lote'[P Value]))

 

Below is the ouput I get:

pranit828_1-1597940692147.png

 

 

richbenmintz
Resident Rockstar
Resident Rockstar

Hi @Anonymous,

 

What is the Error? 

Also just to make sure your [P Value] column is of type Decimal?



I hope this helps,
Richard

Did I answer your question? Mark my post as a solution! Kudos Appreciated!

Proud to be a Super User!


Greg_Deckler
Community Champion
Community Champion

@Anonymous - Can you display the full value of your P Value column?



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...
Anonymous
Not applicable

Thanks for repplying @Greg_Deckler , yes sure

 sqr3.PNG

 

I can not even use the roundup() funtion because it brings up an error

 

Any ideas?

Anonymous
Not applicable

This should work. Can you share a sample PBIX file with us? 

Hi @Anonymous,

 

This is very likely a data type issue, please ensure that your P Value column is of type decimail or currency



I hope this helps,
Richard

Did I answer your question? Mark my post as a solution! Kudos Appreciated!

Proud to be a Super User!


Anonymous
Not applicable

Try
 
P Lote = ROUNDUP(SQRT('PQI Lote'[Z Value]),1)
Anonymous
Not applicable

Hello @Anonymous  thanks for replying, unfortunately that formula didn't worked

the error was the same 

sqr2.PNG

Any other idea?

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.