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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
Anonymous
Not applicable

Display the percentage of amount for specific records

Hi Community,

 

I have a column called amount and it is integer and i have another column called types, I would like the output as below.

 

Input Table:
Type  Amount
A       100

B        200

C        50
D       30

Output:

Type  Amount
A       100

B        200

C        50%
D       30

When the Type is C the amount should show as 50% and for other it should show as actual amount value.

 

Please help.

 

Thanks,

Paruchuri

 

1 ACCEPTED SOLUTION
v-eachen-msft
Community Support
Community Support

Hi @Anonymous ,

 

You could create a calculated column to get the result.

Column =
IF (
    'Table'[Type] = "C",
    'Table'[Amount] & "%",
    FORMAT ( 'Table'[Amount], "" )
)

 

Community Support Team _ Eads
If this post helps, then please consider Accept it as the solution to help the other members find it.

View solution in original post

3 REPLIES 3
v-eachen-msft
Community Support
Community Support

Hi @Anonymous ,

 

You could create a calculated column to get the result.

Column =
IF (
    'Table'[Type] = "C",
    'Table'[Amount] & "%",
    FORMAT ( 'Table'[Amount], "" )
)

 

Community Support Team _ Eads
If this post helps, then please consider Accept it as the solution to help the other members find it.
Nathaniel_C
Community Champion
Community Champion

Hi @Anonymous , 
As you can not have two different types in the same column, do you want C to show as .50, or do you want the whole column as text?

Let me know if you have any questions.

If this solves your issues, please mark it as the solution, so that others can find it easily. Kudos 👍are nice too.
Nathaniel





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

Proud to be a Super User!




Anonymous
Not applicable

HI Nathaniel,

 

Thanks for the reply. I want show % next to the amount for type C otherwise just amount.

 

Thanks,

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

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