We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now
Hi everyone,
I have a dataset with two columns. The first column contains number values and the other one, the unit.
I am trying to create a third column that displays the value with the unit but these are two different data types.
I was wondering if it was possible in PowerBi to create a column that has two different data types but conditionnally ?
if Unit = %, then show realisation in percentage, otherwise show realisation as a whole number.
| Realisation | Unit | New Column |
| 50 | % | 50% (percentage) |
| 100 | 100 (whole number) | |
| 75 | % | 75% |
| 105 | % | 105% |
| 160 | % | 160% |
| 20 | 20 |
Thank you
Have a nice day
Jack
Solved! Go to Solution.
Hi, @JackWren
As of now, you can only create a column that has only one data type , whether it is a calculated column or a measure.
In your case, It is suggested that you convert the column type to text to display it.
Best Regards,
Community Support Team _ Eason
Hi, @JackWren
As of now, you can only create a column that has only one data type , whether it is a calculated column or a measure.
In your case, It is suggested that you convert the column type to text to display it.
Best Regards,
Community Support Team _ Eason
Alright, I need to perform calculation on these numbers so I can't.
Thank you
Jack
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
| User | Count |
|---|---|
| 56 | |
| 40 | |
| 36 | |
| 18 | |
| 18 |
| User | Count |
|---|---|
| 70 | |
| 67 | |
| 38 | |
| 34 | |
| 23 |