cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Mohsen_2020
Helper III
Helper III

Percentage view is not standard

Dear Team, 

 

As showing in the attached screenshot the percentage is not standard as it's showing for example "9400%" but i need it to be like "94%", Please advise. 

SS.png

 

Regards,

Mohsen

2 ACCEPTED SOLUTIONS
ryan_mayu
Super User II
Super User II

@Mohsen_2020 

maybe you can try reach%/100 and set the decimal from 2 to 0





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




View solution in original post

RicoZhou
Community Support
Community Support

Hi @Mohsen_2020 

In addition to   's reply, if you can transform reach% in power query editor. You can build a new custom column based on reach% column, then delete reach% column and rename the new column as reach% column.

You can copy my M query in your Advanced Editor.

let
    Source = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("i45WclTSUbI0UYrViVZyAjEtwExnINPMAMx0AYmagZmuQKaFMZjpBhI1BTPdoSbEAgA=", BinaryEncoding.Base64), Compression.Deflate)), let _t = ((type nullable text) meta [Serialized.Text = true]) in type table [Name = _t, #"Reach%" = _t]),
    #"Changed Type" = Table.TransformColumnTypes(Source,{{"Name", type text}, {"Reach%", Percentage.Type}}),
    #"Added Custom" = Table.AddColumn(#"Changed Type", "M Query", each [#"Reach%"]/100),
    #"Changed Type1" = Table.TransformColumnTypes(#"Added Custom",{{"M Query", Percentage.Type}, {"Reach%", Int64.Type}}),
    #"Removed Columns" = Table.RemoveColumns(#"Changed Type1",{"Reach%"}),
    #"Renamed Columns" = Table.RenameColumns(#"Removed Columns",{{"M Query", "Reach%"}})
in
    #"Renamed Columns"

Sample Table:

1.png

Result:

2.png

If you can't transform it in Power Query Editor, you can build a calculated column by Reach%/100 like  

has replied or you can build a text type column.

New Reach% = [Reach%]/100

OR

New Reach% = [Reach%] &""&"%"

3.png

You can download the pbix file from this link: Percentage view is not standard

 

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. 

View solution in original post

3 REPLIES 3
RicoZhou
Community Support
Community Support

Hi @Mohsen_2020 

Could you tell me if your problem has been solved? If it is, kindly Accept it as the solution. More people will benefit from it. Or you are still confused about it, please provide me with more details about your problem or share me with your pbix file from your Onedrive for Business.

 

Best Regards,

Rico Zhou

RicoZhou
Community Support
Community Support

Hi @Mohsen_2020 

In addition to   's reply, if you can transform reach% in power query editor. You can build a new custom column based on reach% column, then delete reach% column and rename the new column as reach% column.

You can copy my M query in your Advanced Editor.

let
    Source = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("i45WclTSUbI0UYrViVZyAjEtwExnINPMAMx0AYmagZmuQKaFMZjpBhI1BTPdoSbEAgA=", BinaryEncoding.Base64), Compression.Deflate)), let _t = ((type nullable text) meta [Serialized.Text = true]) in type table [Name = _t, #"Reach%" = _t]),
    #"Changed Type" = Table.TransformColumnTypes(Source,{{"Name", type text}, {"Reach%", Percentage.Type}}),
    #"Added Custom" = Table.AddColumn(#"Changed Type", "M Query", each [#"Reach%"]/100),
    #"Changed Type1" = Table.TransformColumnTypes(#"Added Custom",{{"M Query", Percentage.Type}, {"Reach%", Int64.Type}}),
    #"Removed Columns" = Table.RemoveColumns(#"Changed Type1",{"Reach%"}),
    #"Renamed Columns" = Table.RenameColumns(#"Removed Columns",{{"M Query", "Reach%"}})
in
    #"Renamed Columns"

Sample Table:

1.png

Result:

2.png

If you can't transform it in Power Query Editor, you can build a calculated column by Reach%/100 like  

has replied or you can build a text type column.

New Reach% = [Reach%]/100

OR

New Reach% = [Reach%] &""&"%"

3.png

You can download the pbix file from this link: Percentage view is not standard

 

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. 

View solution in original post

ryan_mayu
Super User II
Super User II

@Mohsen_2020 

maybe you can try reach%/100 and set the decimal from 2 to 0





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




View solution in original post

Helpful resources

Announcements
PBI User Groups

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

April Update

Check it Out!

Click here to read more about the April 2021 Updates!

MBAS Carousel

Sign up for our May 4th event!

May the fourth be with you, join us online!

secondImage

The largest Power BI virtual conference

100+ sessions, 100+ speakers, Product managers, MVPs, and experts. All about Power BI. Attend online or watch the recordings.