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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
sherifff
Helper III
Helper III

Rounding decimals based on another column value

Need help with rounding the numbers in a  column called "LabResults" based on values from other column called "LabTestName" , a single column has various lab tests, the requirement is to show the measurement values with different decimals for different tests.

Example

LabTestName   LabResults
T1-272                 20.1 (1 Decimal point)
T1-300                 54.4218 (4 decimals)
TBP                       30 ( No Decimals)
TS-200                  70.42 (2 Decimal points)
TCL-100                40.9 (1 Decimal Point)

 

Any suggestions would be highly appreciated.

1 ACCEPTED SOLUTION
NickolajJessen
Solution Sage
Solution Sage

Hi,

 

The columns names got melted together and i used 20.1111 as values for all entries, but this should do the trick, no :)?

NickolajJessen_0-1654694877078.png

 

View solution in original post

2 REPLIES 2
sherifff
Helper III
Helper III

Thank you so much.  The logic worked for me.  Thanks for your help!

NickolajJessen
Solution Sage
Solution Sage

Hi,

 

The columns names got melted together and i used 20.1111 as values for all entries, but this should do the trick, no :)?

NickolajJessen_0-1654694877078.png

 

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.