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

Get certified in Microsoft Fabric—for free! For a limited time, the Microsoft Fabric Community team will be offering free DP-600 exam vouchers. Prepare 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
OCT PBI Update Carousel

Power BI Monthly Update - October 2024

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

September Hackathon Carousel

Microsoft Fabric & AI Learning Hackathon

Learn from experts, get hands-on experience, and win awesome prizes.

October NL Carousel

Fabric Community Update - October 2024

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