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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
pranit828
Community Champion
Community Champion

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

 

 





PBI_SuperUser_Rank@1x.png


Hope it resolves your issue? 
Did I answer your question? Mark my post as a solution!

Appreciate your Kudos, Press the thumbs up button!!
Linkedin Profile

View solution in original post

8 REPLIES 8
pranit828
Community Champion
Community Champion

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

 

 





PBI_SuperUser_Rank@1x.png


Hope it resolves your issue? 
Did I answer your question? Mark my post as a solution!

Appreciate your Kudos, Press the thumbs up button!!
Linkedin Profile
richbenmintz
Solution Sage
Solution Sage

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
Super User
Super User

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


@ 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!:
The Definitive Guide to Power Query (M)

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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