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

July 28 - August 9 | Final Round of the Power BI Dataviz World Championships. This is your chance. Learn more

Reply
Anonymous
Not applicable

Not converting percentages while loading data

I have this following table as my input file to powerBI that has both decimals and percentages in a field:

EashwarBalaji_0-1687429611366.png

Is there a way to bring this up without converting everything to decimal in powerBI?

EashwarBalaji_1-1687429681775.png

 

Right now, everything converts to decimal without making any transformations. I dont want to change all the values to percentages.

1 ACCEPTED SOLUTION
DOLEARY85
Resident Rockstar
Resident Rockstar

Hi,

 

try this measure, essentially you need to select the KPI to link the associated format to it:

 

Value Measure For Multiple Data Formats = IF(OR(CONTAINSSTRING(SELECTEDVALUE('Table (2)'[KPI]),"X"),CONTAINSSTRING(SELECTEDVALUE('Table (2)'[KPI]),"Z")),FORMAT(SUM('Table (2)'[Values]),"#%"),FORMAT(SUM('Table (2)'[Values]),"0.00"))
 
DOLEARY85_0-1687430423995.png

 

If I answered your question, please mark my post as solution, Appreciate your Kudos 👍

View solution in original post

3 REPLIES 3
Anonymous
Not applicable

Hi @Anonymous ,

 

As far as I know, Power BI is calculated based on columns, so there will be only one data type/data format in each column. 

 

So when you load the data with percentage type or decimal number type into Power BI, there will be only decimal number type on this column.

 

You can try FORMAT() function as their suggestions. However, your column will be convert to text type due to this function.

 

Best Regards,
Rico Zhou

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

 

 

DOLEARY85
Resident Rockstar
Resident Rockstar

Hi,

 

try this measure, essentially you need to select the KPI to link the associated format to it:

 

Value Measure For Multiple Data Formats = IF(OR(CONTAINSSTRING(SELECTEDVALUE('Table (2)'[KPI]),"X"),CONTAINSSTRING(SELECTEDVALUE('Table (2)'[KPI]),"Z")),FORMAT(SUM('Table (2)'[Values]),"#%"),FORMAT(SUM('Table (2)'[Values]),"0.00"))
 
DOLEARY85_0-1687430423995.png

 

If I answered your question, please mark my post as solution, Appreciate your Kudos 👍

Kishore_KVN
Solution Sage
Solution Sage

Hello @Anonymous create a new column and its calculation looks as below:

If(KPI = "Z', FORMAT('TABLE'[VALUES],"0%"), 'TABLE'[VALUES])

this will create new column and only Z will be converted not all others. 

 

If this post helps, then please consider accepting it as the solution to help other members find it more quickly. Thank You!!

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

Fabric Community Sticker Design Challenge Barcelona Carousel

Fabric Community Sticker Challenge - Barcelona 2026

If you love stickers, then you will definitely want to check out our community sticker challenge, Barcelona edition!

July Power BI Update Carousel

Power BI Monthly Update - July 2026

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

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.