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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register 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! Prices go up Feb. 11th.

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

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