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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
rmussetter
Frequent Visitor

Unifying Percentage Data Formats in a Single Column

Hello,

 

I am trying to create a table-widget(?) that will indicate the number of patients at our health center that have a lab result that falls within certain categories (i.e. <7%, 7 to 8%, >8%). When I pull the raw data from our electronic health record (EHR), the data is entered either as a true number (i.e. "0.07") or as a percentage (i.e. "7"). Is there a way to change the formatting for only a portion of a column? Thanks. I am building my first dashboard and, aside from reading about 400 pages of a user guide, know nothing.

 

Capture.PNG

1 ACCEPTED SOLUTION
HotChilli
Super User
Super User

It would probably make sense to clean the data up in Power Query editor.

You could add a custom column , something like

if [labvalue] > 1 then [labvalue] else 100 * [labvalue]

 

as long as that rule holds for all of your data

View solution in original post

4 REPLIES 4
Anonymous
Not applicable

Hey @rmussetter 
In addition to the above from HotChilli ,
It is also a good opertunity for some data cleansing and alignments in you EHR. In addition, need to train the users to insert the correct numbers. Last, but not least, customise the system to accept only one type of numbers (0-1/0-100),

Raise this as an issue with your data team and/or DBA , or whom ever is in charge of that system (system admin, etc.)

Good luck!
A

Thank you @Anonymous . This is a good point and I will raise it with our organization's data governance group. In the meantime, HotChilli's syntax solution works to bring me to the place I need to be.

HotChilli
Super User
Super User

It would probably make sense to clean the data up in Power Query editor.

You could add a custom column , something like

if [labvalue] > 1 then [labvalue] else 100 * [labvalue]

 

as long as that rule holds for all of your data

Thank you @HotChilli! That syntax solved my problem.

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors