cancel
Showing results 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

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.

Thanks,

Paruchuri

1 ACCEPTED SOLUTION
Community Support

Hi @Anonymous ,

You could create a calculated column to get the result.

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

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

Hi @Anonymous ,

You could create a calculated column to get the result.

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

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

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

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,

Announcements

#### Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

#### Power BI Monthly Update - June 2024

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

#### 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.

#### New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

Top Solution Authors
Top Kudoed Authors