Starting December 3, join live sessions with database experts and the Microsoft product team to learn just how easy it is to get started
Learn moreGet certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register now
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
Solved! Go to Solution.
Hi @Anonymous ,
You could create a calculated column to get the result.
Column =
IF (
'Table'[Type] = "C",
'Table'[Amount] & "%",
FORMAT ( 'Table'[Amount], "" )
)
Hi @Anonymous ,
You could create a calculated column to get the result.
Column =
IF (
'Table'[Type] = "C",
'Table'[Amount] & "%",
FORMAT ( 'Table'[Amount], "" )
)
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!
HI Nathaniel,
Thanks for the reply. I want show % next to the amount for type C otherwise just amount.
Thanks,
Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early Bird pricing ends December 9th.
User | Count |
---|---|
94 | |
90 | |
84 | |
70 | |
49 |
User | Count |
---|---|
141 | |
121 | |
112 | |
59 | |
58 |