Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
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,
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
112 | |
100 | |
80 | |
64 | |
57 |
User | Count |
---|---|
146 | |
110 | |
93 | |
84 | |
67 |