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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

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
July 2024 Power BI Update

Power BI Monthly Update - July 2024

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

PBI_Carousel_NL_June

Fabric Community Update - June 2024

Get the latest Fabric updates from Build 2024, key Skills Challenge voucher deadlines, top blogs, forum posts, and product ideas.

Top Solution Authors